[all-commits] [llvm/llvm-project] a1a1a7: [pseudo] Eliminate an ambiguity for the empty memb...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Fri Aug 12 04:48:03 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a1a1a78ac8cf837e4c05152c9715f399b33bfb59
https://github.com/llvm/llvm-project/commit/a1a1a78ac8cf837e4c05152c9715f399b33bfb59
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2022-08-12 (Fri, 12 Aug 2022)
Changed paths:
M clang-tools-extra/pseudo/lib/cxx/cxx.bnf
A clang-tools-extra/pseudo/test/cxx/empty-member-declaration.cpp
Log Message:
-----------
[pseudo] Eliminate an ambiguity for the empty member declaration.
We happened to introduce a `member-declaration := ;` rule
when inlining the `member-declaration := decl-specifier-seq_opt
member-declarator-list_opt ;`.
And with the `member-declaration := empty-declaration` rule, we had two parses of `;`.
This patch is to restrict the grammar to eliminate the
`member-declaration := ;` rule.
Differential Revision: https://reviews.llvm.org/D131724
More information about the All-commits
mailing list