[cfe-commits] Patch: Add warning for undefined reinterpret_cast behavior

John McCall rjmccall at apple.com
Wed Apr 27 18:11:02 PDT 2011


On Apr 27, 2011, at 6:07 PM, Richard Trieu wrote:
> Is there a way that Clang can check if the warning is turned off and skip the expensive checking?

Yes, you can check whether the current mapping for the diagnostic is still "ignore".

> And did you mean the list in [basic.lval]p15?  [basic.lval]p10 doesn't have a list.

We're just looking at different standards. :)  C++11's [basic.lval]p10 is just minor wording differences from C++03's [basic.lval]p15.

John.



More information about the cfe-commits mailing list