[cfe-commits] r155923 - /cfe/trunk/lib/Frontend/CompilerInstance.cpp
kremenek at apple.com
Wed May 2 14:09:59 PDT 2012
On May 1, 2012, at 11:16 AM, David Blaikie <dblaikie at gmail.com> wrote:
> Would it be practical for Clang to have a warning that caught this (at
> least incrementally) - the assignment inside the conditional is dead -
> nothing after it reads CurFile, so it would be nice if we warned. (&
> then the user would probably be able to see that the rest of this was
> silly too)
It's definitely possible. It's a simple flow-sensitive analysis (basically live variables analysis), but it would need to be specially optimized to make it acceptable on the performance front for the frontend.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits