[PATCH] Static analysis checker for catch handler inversion

Aaron Ballman aaron at aaronballman.com
Mon Oct 27 16:40:46 PDT 2014


On Mon, Oct 27, 2014 at 7:38 PM, Richard Smith <richard at metafoo.co.uk> wrote:
> On Mon, Oct 27, 2014 at 4:35 PM, Aaron Ballman <aaron at aaronballman.com>
> wrote:
>>
>> On Mon, Oct 27, 2014 at 7:30 PM, Jordan Rose <jordan_rose at apple.com>
>> wrote:
>> > Nifty! But do you think this is cheap enough for a general compiler
>> > warning? It certainly doesn't depend on the analyzer's path-sensitive
>> > analysis, so it's mostly just how much we care about the cost of
>> > isDerivedFrom.
>>
>> This should be relatively inexpensive, so it may make sense as a
>> general compiler warning if others feel that's a better approach.
>
>
> Yes, I think this is a good candidate for an (on-by-default) compiler
> warning.

Then I'll rework this, thanks!

~Aaron



More information about the cfe-commits mailing list