
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
8 lines
242 B
C++
8 lines
242 B
C++
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest --forest-abbrev=false | FileCheck %s
|
|
class A {
|
|
;
|
|
// CHECK-NOT: member-declaration := ;
|
|
// CHECK: member-declaration := empty-declaration
|
|
// CHECK-NOT: member-declaration := ;
|
|
};
|