ttroy50 / cmake-examples

Useful CMake Examples
http://ttroy50.github.io/cmake-examples
MIT License
12.4k stars 2.5k forks source link

scan-build doesn`t get the null pointer #60

Open mtxing69 opened 3 years ago

mtxing69 commented 3 years ago

ubuntu16.04, scan-build ver 3.8 in 04-static-analysis/clang-analyzer, cmake is normal, but in make progress, the expected "null pointer" didn`t get out, instead there is a "iostream file not found" image Anybody knows why?

ttroy50 commented 3 years ago

It's possible that different versions of scan build report different errors. Once you can call scan build and see results from it then your project is setup correctly