[clang] [clang] Diagnose config_macros before building modules (PR #83641)

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 4 13:31:20 PST 2024


================
@@ -1591,6 +1591,14 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro,
   }
 }
 
+static void checkConfigMacros(Preprocessor &PP, Module *M,
+                              SourceLocation ImportLoc) {
+  clang::Module *TopModule = M->getTopLevelModule();
+  for (unsigned I = 0, N = TopModule->ConfigMacros.size(); I != N; ++I) {
----------------
dwblaikie wrote:

range based for loop?

https://github.com/llvm/llvm-project/pull/83641


More information about the cfe-commits mailing list