Skip to content

Instantly share code, notes, and snippets.

@MisterDA
Created July 10, 2024 07:59
Show Gist options
  • Save MisterDA/6bdfc065e921419fabf829bddf5a0f34 to your computer and use it in GitHub Desktop.
Save MisterDA/6bdfc065e921419fabf829bddf5a0f34 to your computer and use it in GitHub Desktop.
cppcheck for OCaml
#!/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