]> granicus.if.org Git - clang/commit
Add -Wnon-modular-include* options
authorBen Langmuir <blangmuir@apple.com>
Mon, 5 May 2014 21:44:13 +0000 (21:44 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 5 May 2014 21:44:13 +0000 (21:44 +0000)
commit57973be024e1b0cb252ae43ddc05d4ce4203b1f1
treeccb36e76278459190018d25fc0b8fd7ff89dd9c5
parent6197f101bd0d753866f39268fb1f63e03eadce6f
Add -Wnon-modular-include* options

Warn on non-modular includes in various contexts.

-Wnon-modular-include
 -Wnon-modular-include-in-module
  -Wnon-modular-include-in-framework-module

Where each group is a subgroup of those above it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208004 91177308-0d34-0410-b5e6-96231b3b80d8
34 files changed:
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Lex/ModuleMap.h
lib/Lex/ModuleMap.cpp
lib/Lex/PPDirectives.cpp
test/Modules/Inputs/require-modular-includes/A.framework/Headers/A.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/AnotherModule.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/AnotherModuleExcluded.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/B.framework/Headers/B.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/C.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/ExcludedFromAnotherModule.framework/Headers/ExcludedFromAnotherModule.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromAnotherModule.framework/Headers/FromAnotherModule.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromImportedModuleFail.framework/Headers/FromImportedModuleFail.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromImportedModuleOK.framework/Headers/FromImportedModuleOK.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromImportedModuleOK.framework/Headers/FromImportedModuleOK2.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromImportedModuleOK.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromImportedSubModule.framework/Headers/Header.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromImportedSubModule.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromNonModularSubframework.framework/Frameworks/Subframework.framework/Headers/Subframework.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromNonModularSubframework.framework/Headers/FromNonModularSubframework.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromNonModularSubframework.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromSubframework.framework/Frameworks/Subframework.framework/Headers/Subframework.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromSubframework.framework/Headers/FromSubframework.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromSubframework.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/FromUmbrella.framework/Headers/FromUmbrella.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/IncludeExcluded.framework/Headers/Excluded.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/IncludeExcluded.framework/Headers/IncludeExcluded.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/IncludeExcluded.framework/Modules/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/NotFramework.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/NotInModule.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/module.modulemap [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/umbrella/bar/bar.h [new file with mode: 0644]
test/Modules/Inputs/require-modular-includes/umbrella/foo.h [new file with mode: 0644]
test/Modules/require-modular-includes.m [new file with mode: 0644]