[cfe-dev] [StaticAnalyzer]: Cant get my checker to output

John McCall rjmccall at apple.com
Wed Sep 28 19:32:37 PDT 2011


On Sep 28, 2011, at 6:55 PM, funceval wrote:
> Thank you for replying. The problem is that clang is running some optimizations before running the analyzer. As a result, my if statement is being optimized out and because of that nothing gets printed. clang should not run optimizations when running in analyze mode otherwise it can't detect bugs in the original code. Do you agree?

Clang does not perform optimizations on the AST.

John.



More information about the cfe-dev mailing list