aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-19 00:10:28 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-19 00:10:28 +0000
commit11152dd55f7a11867851d3b123f1d9ceaa89f6ce (patch)
tree9baa3a302422bd1ab7ba4876319fc6597518f303 /clang/lib/Lex/ModuleMap.cpp
parent02389e38864e876adfc872c43cc955c4eda34e65 (diff)
downloadllvm-11152dd55f7a11867851d3b123f1d9ceaa89f6ce.zip
llvm-11152dd55f7a11867851d3b123f1d9ceaa89f6ce.tar.gz
llvm-11152dd55f7a11867851d3b123f1d9ceaa89f6ce.tar.bz2
Allow errors on use of a private module header to be disabled, to better support incremental transition to modules.
llvm-svn: 229788
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r--clang/lib/Lex/ModuleMap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index 018a0b8..0bb9856 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -288,14 +288,14 @@ void ModuleMap::diagnoseHeaderInclusion(Module *RequestingModule,
// We have found a header, but it is private.
if (Private) {
- Diags.Report(FilenameLoc, diag::error_use_of_private_header_outside_module)
+ Diags.Report(FilenameLoc, diag::warn_use_of_private_header_outside_module)
<< Filename;
return;
}
// We have found a module, but we don't use it.
if (NotUsed) {
- Diags.Report(FilenameLoc, diag::error_undeclared_use_of_module)
+ Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module)
<< RequestingModule->getFullModuleName() << Filename;
return;
}
@@ -306,7 +306,7 @@ void ModuleMap::diagnoseHeaderInclusion(Module *RequestingModule,
// At this point, only non-modular includes remain.
if (LangOpts.ModulesStrictDeclUse) {
- Diags.Report(FilenameLoc, diag::error_undeclared_use_of_module)
+ Diags.Report(FilenameLoc, diag::err_undeclared_use_of_module)
<< RequestingModule->getFullModuleName() << Filename;
} else if (RequestingModule) {
diag::kind DiagID = RequestingModule->getTopLevelModule()->IsFramework ?