[cfe-dev] Proposal: -Wshadow-field flag

Reid Kleckner rnk at google.com
Tue Apr 21 14:30:03 PDT 2015


On Tue, Apr 21, 2015 at 2:01 PM, Ehsan Akhgari <ehsan.akhgari at gmail.com>
wrote:

> On Mon, Apr 20, 2015 at 5:33 PM, Reid Kleckner <rnk at google.com> wrote:
>
>> I think this would be a great addition! In general, -Wshadow fires in a
>> lot of situations, and I think having more granularity here is helpful for
>> users.
>>
>
> Note that -Wshadow doesn't diagnose this specific case, so my proposal
> isn't really a subset of -Wshadow.
>

Right, this sounds like a new and useful warning by itself.

I was mostly saying this seems like the right direction. The existing
checks under -Wshadow are both too little and too much. Having more checks
and more granular flags will help us explore the space.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150421/a09b44e5/attachment.html>


More information about the cfe-dev mailing list