]> granicus.if.org Git - clang/commitdiff
Add the module name to the 'incomplete umbrella header' warning.
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 Jan 2013 18:58:28 +0000 (18:58 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 Jan 2013 18:58:28 +0000 (18:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171497 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/PPLexerChange.cpp
test/Modules/build-fail-notes.m

index c6c50ab37b87c49bcdd182f4030031bfb0015fbb..dbb5b4e58f99663ff4a7a2d3e4ee52d15810aa90 100644 (file)
@@ -521,7 +521,8 @@ def warn_auto_module_import : Warning<
   "treating #%select{include|import|include_next|__include_macros}0 as an "
   "import of module '%1'">, InGroup<AutoImport>, DefaultIgnore;
 def warn_uncovered_module_header : Warning<
-  "umbrella header does not include header '%0'">, InGroup<IncompleteUmbrella>;
+  "umbrella header for module '%0' does not include header '%1'">, 
+  InGroup<IncompleteUmbrella>;
 def err_expected_id_building_module : Error<
   "expected a module name in '__building_module' expression">;
   
index 0ce67dce7e6a1987b2f95f172be11fc20807f64c..be4defe78648b6d3103fc7097bb75d20794f9119 100644 (file)
@@ -395,7 +395,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) {
                 SmallString<128> RelativePath;
                 computeRelativePath(FileMgr, Dir, Header, RelativePath);              
                 Diag(StartLoc, diag::warn_uncovered_module_header)
-                  << RelativePath;
+                  << Mod->getFullModuleName() << RelativePath;
               }
             }
         }
index 93809daca35e5f9e698dbfaf5352ad11e2c1456c..63428ec19299034877bf99118206cf3a14c7b957 100644 (file)
@@ -25,7 +25,7 @@ extern int Module;
 // CHECK-SDIAG: build-fail-notes.m:4:9: note: while building module 'DependsOnModule' imported from
 // CHECK-SDIAG: DependsOnModule.h:1:10: note: while building module 'Module' imported from
 // CHECK-SDIAG: note: expanded from here
-// CHECK-SDIAG: warning: umbrella header does not include header 'NotInModule.h' [-Wincomplete-umbrella]
+// CHECK-SDIAG: warning: umbrella header for module 'Module' does not include header 'NotInModule.h' [-Wincomplete-umbrella]
 // CHECK-SDIAG: DependsOnModule.h:1:10: fatal: could not build module 'Module'
 // CHECK-SDIAG: build-fail-notes.m:4:9: note: while building module 'DependsOnModule' imported from