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

funceval funceval at gmail.com
Wed Sep 28 19:34:58 PDT 2011


Not even constant folding and constant propagation?

Arjun

On Wed, Sep 28, 2011 at 7:32 PM, John McCall <rjmccall at apple.com> wrote:

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110928/f7002fe7/attachment.html>


More information about the cfe-dev mailing list