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
- Host: GitHub
- URL: https://github.com/nicholasbishop/shoulda
- Owner: nicholasbishop
- Created: 2017-05-10T08:02:24.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-13T22:23:45.000Z (over 8 years ago)
- Last Synced: 2026-02-09T04:32:13.032Z (5 months ago)
- Topics: c, c-plus-plus, libclang, static-analysis
- Language: C++
- Homepage:
- Size: 176 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shoulda

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.)