2 ms·
Clang's static analyzer can be run by wrapping your build with scan-build: scan-build make
by pabs3 4y ago
Clang's static analyzer can be run by wrapping your build with scan-build:
scan-build make
- HybridCurve 4y agoI like scan-build better than codechecker, but codechecker is the only thing that does CTU, which is much more thorough. That being said, codechecker is not that great in terms of it's interface. Over all, it really needs to be implemented in a GUI application as there are many many fine tuning flags you can set with the clang analyzer (as well as potential for parallelization) that either cant be taken advantage of, or is too cumbersome to use codechecker to do.
- pabs3 4y agoFor those like me who weren't aware of CTU, it is Cross Translation Unit analysis: https://codechecker.readthedocs.io/en/latest/analyzer/user_guide/#ctu https://codechecker.readthedocs.io/en/latest/analyzer/user_g... I noticed that codechecker can also ingest results from many different tools other than Clang: https://codechecker.readthedocs.io/en/latest/supported_code_analyzers/ https://codechecker.readthedocs.io/en/latest/supported_code_...