Created
July 10, 2024 07:59
-
-
Save MisterDA/6bdfc065e921419fabf829bddf5a0f34 to your computer and use it in GitHub Desktop.
cppcheck for OCaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# - Problems with parsing C, use --clang? | |
# - Problems with seemingly unused variables, recognize __attribute__ ((unused))? | |
./configure --disable-ocamldoc && bear -- make | |
cppcheck --project=compile_commands.json --quiet \ | |
--std=c11 \ | |
--check-level=exhaustive --enable=all \ | |
--suppress=missingIncludeSystem --suppress=unusedFunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment