Remove -Wnon-modular-include

But keep -Wnon-modular-include-in-[framework-]module

This warning is too noisy and doesn't really indicate a problem for most
people.  Even though it would only really affect people using
-Weverything, that seems bad so remove it.

llvm-svn: 208345
This commit is contained in:
Ben Langmuir 2014-05-08 18:09:29 +00:00
parent e8a076a253
commit 46b02e3edd
4 changed files with 1 additions and 18 deletions

View File

@ -190,8 +190,6 @@ def NonModularIncludeInFrameworkModule
: DiagGroup<"non-modular-include-in-framework-module">;
def NonModularIncludeInModule : DiagGroup<"non-modular-include-in-module",
[NonModularIncludeInFrameworkModule]>;
def NonModularInclude : DiagGroup<"non-modular-include",
[NonModularIncludeInModule]>;
def InvalidNoreturn : DiagGroup<"invalid-noreturn">;
def InvalidSourceEncoding : DiagGroup<"invalid-source-encoding">;
def KNRPromotedParameter : DiagGroup<"knr-promoted-parameter">;

View File

@ -626,8 +626,7 @@ def warn_non_modular_include_in_framework_module : Warning<
def warn_non_modular_include_in_module : Warning<
"include of non-modular header inside module '%0'">,
InGroup<NonModularIncludeInModule>, DefaultIgnore;
def warn_non_modular_include : Warning<
"include of non-modular header">, InGroup<NonModularInclude>, DefaultIgnore;
def warn_header_guard : Warning<
"%0 is used as a header guard here, followed by #define of a different macro">,

View File

@ -310,8 +310,6 @@ void ModuleMap::diagnoseHeaderInclusion(Module *RequestingModule,
diag::warn_non_modular_include_in_framework_module :
diag::warn_non_modular_include_in_module;
Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName();
} else {
Diags.Report(FilenameLoc, diag::warn_non_modular_include);
}
}

View File

@ -40,12 +40,6 @@
// RUN: -fmodules-cache-path=%t -I %S/Inputs/require-modular-includes \
// RUN: -Werror -fmodule-name=A -fsyntax-only -x objective-c -
// Including a non-modular header (directly) with -Wnon-modular-include
// RUN: echo '#include "NotInModule.h"' | \
// RUN: %clang_cc1 -Wnon-modular-include -fmodules \
// RUN: -fmodules-cache-path=%t -I %S/Inputs/require-modular-includes \
// RUN: -fmodule-name=A -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
// Including an excluded header
// RUN: echo '@import IncludeExcluded;' | \
// RUN: %clang_cc1 -Wnon-modular-include-in-framework-module -fmodules \
@ -86,10 +80,4 @@
// RUN: -fmodules-cache-path=%t -I %S/Inputs/require-modular-includes \
// RUN: -Werror -fsyntax-only -x objective-c -
// Non-framework module (fail)
// RUN: echo '@import NotFramework;' | \
// RUN: not %clang_cc1 -Werror=non-modular-include -fmodules \
// RUN: -fmodules-cache-path=%t -I %S/Inputs/require-modular-includes \
// RUN: -fsyntax-only -x objective-c - 2>&1 | FileCheck %s
// CHECK: include of non-modular header