[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 17 08:43:32 PST 2025


================
@@ -2516,8 +2490,17 @@ Decl *Parser::ParseModuleImport(SourceLocation AtLoc,
       SeenError = false;
     break;
   }
-  ExpectAndConsumeSemi(diag::err_module_expected_semi);
-  TryConsumeToken(tok::eod);
+
+  bool DontSeeSemi = false;
----------------
cor3ntin wrote:

can we avoid negations?
```suggestion
  bool LexedSemi;
```

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


More information about the cfe-commits mailing list