[clang] [clang][deps] Recognize 'module;' in dependency directive scanner (PR #148685)

Michael Spencer via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 10:44:27 PDT 2025


================
@@ -1122,16 +1122,17 @@ ort \
     )";
   ASSERT_FALSE(
       minimizeSourceToDependencyDirectives(Source, Out, Tokens, Directives));
-  EXPECT_STREQ("#include \"textual-header.h\"\nexport module m;"
+  EXPECT_STREQ("module;#include \"textual-header.h\"\nexport module m;"
----------------
Bigcheese wrote:

This needs a `\n` after the `module;` so that `#include` starts on a new line.

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


More information about the cfe-commits mailing list