Closed ryosa closed 7 years ago
Hey, I can't say deffinite answer about the Clang version. (The current CI runs against 4.0, but the previous version a year ago was 3.4.) So it probably works with that too... You can specify another version with --use-analyzer
flag too.
Not sure what you are doing, but I smell that this is unrelated to this tool. :) Does your project compiles with Clang? (There are cases when it compiles fine with GCC but fails with Clang.) Because that's a pre-requisit for static analisis.
@rizsotto No, the project builds with gcc, so I've not built it with clang. By differential development, some part of the project was written 14 years ago, clang may dislike the old passages... Please close this. I will reopen if needed. Cheers!
Does
analyze-build
supportclang 3.4
? I rananalyze-build
from jenkins and here is a part of the log.The compilation db was like this.
The db was generated by https://github.com/nickdiego/compiledb-generator
I wonder if later version of clang, installed in another directory, can be specified to
analyze-build
.