diff options
author | Manman Ren <manman.ren@gmail.com> | 2016-10-21 23:27:37 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2016-10-21 23:27:37 +0000 |
commit | 70a7738f8454f3c07c3ec5c0902ebcd905a40637 (patch) | |
tree | b08dd2679cf795166717319a32c999cba567f995 /clang/lib/Lex/ModuleMap.cpp | |
parent | 5b7767f646ec52b5cddff7254778f75222205af3 (diff) | |
download | bcm5719-llvm-70a7738f8454f3c07c3ec5c0902ebcd905a40637.tar.gz bcm5719-llvm-70a7738f8454f3c07c3ec5c0902ebcd905a40637.zip |
Module: improve the diagnostic message for include of non-modular header.
Emit the actual path to the non-modular include.
rdar://28897010
llvm-svn: 284897
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 429b2cc0738..6a261a11548 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -303,7 +303,8 @@ void ModuleMap::diagnoseHeaderInclusion(Module *RequestingModule, diag::kind DiagID = RequestingModule->getTopLevelModule()->IsFramework ? diag::warn_non_modular_include_in_framework_module : diag::warn_non_modular_include_in_module; - Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName(); + Diags.Report(FilenameLoc, DiagID) << RequestingModule->getFullModuleName() + << File->getName(); } } |