[clang-tools-extra] d25361c - [pseudo] Move ellipsis into initializer-list-item. NFC
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 28 12:08:54 PDT 2022
Author: Sam McCall
Date: 2022-06-28T21:08:43+02:00
New Revision: d25361c3afa6c3774c4f814a1142ceee9085db9e
URL: https://github.com/llvm/llvm-project/commit/d25361c3afa6c3774c4f814a1142ceee9085db9e
DIFF: https://github.com/llvm/llvm-project/commit/d25361c3afa6c3774c4f814a1142ceee9085db9e.diff
LOG: [pseudo] Move ellipsis into initializer-list-item. NFC
This makes the list formation a bit simpler.
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 d6f292d0ee24..03a7d00182e9 100644
--- a/clang-tools-extra/pseudo/lib/cxx/cxx.bnf
+++ b/clang-tools-extra/pseudo/lib/cxx/cxx.bnf
@@ -460,10 +460,10 @@ initializer-clause := braced-init-list
# This is standard C, and accepted by clang and others as an extension.
braced-init-list := { initializer-list ,_opt }
braced-init-list := { }
-initializer-list := initializer-list-item ..._opt
-initializer-list := initializer-list , initializer-list-item ..._opt
-initializer-list-item := initializer-clause
-initializer-list-item := designator brace-or-equal-initializer
+initializer-list := initializer-list-item
+initializer-list := initializer-list , initializer-list-item
+initializer-list-item := initializer-clause ..._opt
+initializer-list-item := designator brace-or-equal-initializer ..._opt
designator := . IDENTIFIER
#! Array designators are legal in C, and a common extension in C++.
designator := [ expression ]
More information about the cfe-commits
mailing list