[PATCH] Add -Wnon-modular-include options

Ben Langmuir blangmuir at apple.com
Mon May 5 15:10:21 PDT 2014


On May 5, 2014, at 1:02 PM, Richard Smith <richard at metafoo.co.uk> wrote:

> Sorry for the delay!
> 
> Can you factor out the known header checking, or move it into an 'if', rather than skipping it with a goto?
> 
> Otherwise, LGTM, thanks!

Thanks for the review, I moved that code under an if, took the opportunity to use a range-based-for and committed as r208004.

Ben
> 
> 
> On Sun, May 4, 2014 at 7:07 PM, Ben Langmuir <blangmuir at apple.com> wrote:
> gentle ping
> 
> On Apr 28, 2014, at 8:54 PM, Ben Langmuir <blangmuir at apple.com> wrote:
> 
> > This patch adds the warning options:
> >
> > -Wnon-modular-include -- warn on any #include of a header that's not listed in a module map
> >  [-Wnon-modular-include-in-module -- subgroup, only warn if the include is in a module]
> >    -Wnon-modular-include-in-framework-module -- subgroup, only warn if the include is in a framework module
> >
> > There had been discussion of this making -fmodules-strict-decluse redundant, but I wasn’t sure if we came to an agreement about that, so I didn’t remove it.
> >
> >
> > Ben<non-modular-include.patch>
> >
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140505/bb304f67/attachment.html>


More information about the cfe-commits mailing list