[clang] Reapply "[Clang] Implement P3034R1 Module Declarations Shouldn’t be Macros" (PR #102135)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 5 12:36:48 PDT 2024


================
@@ -652,14 +647,14 @@ bool Parser::ParseTopLevelDecl(DeclGroupPtrTy &Result,
     // Recognize context-sensitive C++20 'export module' and 'export import'
     // declarations.
     case tok::identifier: {
-      IdentifierInfo *II = NextToken().getIdentifierInfo();
-      if ((II == Ident_module || II == Ident_import) &&
-          GetLookAheadToken(2).isNot(tok::coloncolon)) {
-        if (II == Ident_module)
-          goto module_decl;
-        else
-          goto import_decl;
-      }
+      // IdentifierInfo *II = NextToken().getIdentifierInfo();
----------------
shafik wrote:

dead code?

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


More information about the cfe-commits mailing list