Motivating case: `foo bar;` is not a declaration of nothing with `foo` and `bar` both types. This is a common and critical ambiguity, clangd/AST.cpp has 20% fewer ambiguous nodes (1674->1332) after this change. Differential Revision: https://reviews.llvm.org/D130337
5 lines
159 B
C++
5 lines
159 B
C++
// RUN: clang-pseudo-fuzzer -grammar=%cxx-bnf-file -print %s | FileCheck %s
|
|
int x;
|
|
// CHECK: translation-unit := declaration-seq
|
|
// CHECK: builtin-type := INT
|