On May 1, 2012, at 11:16 AM, David Blaikie <[email protected]> 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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to