An open API service indexing awesome lists of open source software.

https://github.com/nicholasbishop/shoulda

Static analysis tool to find C/C++ function calls that do not use the return value
https://github.com/nicholasbishop/shoulda

c c-plus-plus libclang static-analysis

Last synced: 2 months ago
JSON representation

Static analysis tool to find C/C++ function calls that do not use the return value

Awesome Lists containing this project

README

          

# shoulda

![shoulda checked the return value](shoulda.jpg)

Find function calls that do not use the return value:

http://stackoverflow.com/questions/43811955/how-can-i-lint-c-code-to-find-all-unused-return-values

## Build

1. Install dependencies

Fedora:

dnf install clang-devel llvm-devel llvm-static

2. Build with CMake

mkdir build
cd build
cmake -G Ninja ..
ninja

(You can use Make or some other build system instead of Ninja.)