[clang-tools-extra] 661e0b6 - [pseudo] Fix minor errors in module grammar
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 25 01:05:08 PDT 2022
Author: Sam McCall
Date: 2022-07-25T10:04:56+02:00
New Revision: 661e0b63f721832ab1015e32a4399470a625098f
URL: https://github.com/llvm/llvm-project/commit/661e0b63f721832ab1015e32a4399470a625098f
DIFF: https://github.com/llvm/llvm-project/commit/661e0b63f721832ab1015e32a4399470a625098f.diff
LOG: [pseudo] Fix minor errors in module grammar
Added:
Modified:
clang-tools-extra/pseudo/lib/cxx/cxx.bnf
Removed:
################################################################################
diff --git a/clang-tools-extra/pseudo/lib/cxx/cxx.bnf b/clang-tools-extra/pseudo/lib/cxx/cxx.bnf
index 8138d0fd481ed..ca8fc01b8f414 100644
--- a/clang-tools-extra/pseudo/lib/cxx/cxx.bnf
+++ b/clang-tools-extra/pseudo/lib/cxx/cxx.bnf
@@ -536,12 +536,12 @@ module-partition := : module-name-qualifier_opt IDENTIFIER
module-name-qualifier := IDENTIFIER .
module-name-qualifier := module-name-qualifier IDENTIFIER .
export-declaration := EXPORT declaration
-export-declaration := EXPORT ( declaration-seq_opt )
+export-declaration := EXPORT { declaration-seq_opt }
export-declaration := export-keyword module-import-declaration
-module-import-declaration := import-keyword module-name
-module-import-declaration := import-keyword module-partition
+module-import-declaration := import-keyword module-name ;
+module-import-declaration := import-keyword module-partition ;
# FIXME: we don't have header-name in the grammar. Handle these in PP?
-# module-import-declaration := import-keyword header-name
+# module-import-declaration := import-keyword header-name ;
global-module-fragment := module-keyword ; declaration-seq_opt
private-module-fragment := module-keyword : PRIVATE ; declaration-seq_opt
More information about the cfe-commits
mailing list