rizsotto / scan-build

Clang's scan-build re-implementation in python
Other
362 stars 34 forks source link

on WIndows scan-build works but not analyze-build #130

Closed JacobVarghese1992 closed 2 years ago

JacobVarghese1992 commented 2 years ago

scan-build on individual files in compile_commands.json works but running analyze-build passing -cbd does not

https://stackoverflow.com/questions/71332292/how-do-i-use-analyze-build-to-perform-static-analysis-on-android-c-project

rizsotto commented 2 years ago

if you have a JSON compilation database (compile_commands.json), then call clang-tidy instead. (clang-tidy also runs the static analyzer, plus a few other checks.)

https://clang.llvm.org/extra/clang-tidy/