ClangSA: Make it possible to disable -analyzer-opt-analyze-headers
Is your feature request related to a problem? Please describe.
My problem is huge analysis time when I run ClangSA on huge project.
And cause of it is this option.
https://github.com/Ericsson/codechecker/blob/38f93156f678f84eb297672eec4a8dde8eb39586/analyzer/codechecker_analyzer/analyzers/clangsa/analyzer.py#L316
I was testing complete check with and without this option, and on our project it is 12h vs 2h. And the difference between discovered set of issues is really minimal.
Describe the solution you would like I do not think that this header-analysis should be disabled by default, it is probably helpful to small projects, but I think you should let people optionally disable it for situations where speed is critical (like analyzing pull requests quickly).
Describe alternatives you have considered Unfortunately I dont think I can speedup analysis of our project by any other means. It would be great to specify depth of header analysis for ClangSA, but this will require implementation in ClangSA, which may not be easy.
Additional context None