forked from OSchip/llvm-project
[pseudo] Use the prebuilt cxx grammar for the lit tests, NFC.
Differential Revision: https://reviews.llvm.org/D129074
This commit is contained in:
parent
4696a33dfa
commit
70c0d92930
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
// We loosely allow capture defaults in any position/multiple times.
|
||||
auto lambda = [&, &foo, bar(x), =]{};
|
||||
// CHECK: lambda-introducer := [ capture-list ]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// FIXME: eliminate this false parse.
|
||||
// XFAIL: *
|
||||
|
||||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
void s(){};
|
||||
// CHECK-NOT: simple-declaration
|
||||
// CHECK: function-definition := decl-specifier-seq declarator
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// FIXME: eliminate this false parse.
|
||||
// XFAIL: *
|
||||
|
||||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
void (*s)(){};
|
||||
// CHECK-NOT: function-definition
|
||||
// CHECK: init-declarator := declarator initializer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
class Foo {
|
||||
public:
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
bool operator<();
|
||||
// CHECK: translation-unit~simple-declaration := decl-specifier-seq init-declarator-list ;
|
||||
// CHECK-NEXT: ├─decl-specifier-seq~BOOL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
// FIXME: tighten CHECK to CHECK-NEXT once numeric literals are unambiguous.
|
||||
auto x = { 1, .f = 2, [c]{3} };
|
||||
// CHECK: initializer-clause~braced-init-list
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
void foo2(int, ...);
|
||||
// CHECK: translation-unit~simple-declaration := decl-specifier-seq init-declarator-list ;
|
||||
// CHECK-NEXT: ├─decl-specifier-seq~VOID :=
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
void s() {
|
||||
__func__;
|
||||
// CHECK: expression~__FUNC__ := tok[5]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
template <typename> struct MatchParents;
|
||||
// CHECK: template-parameter-list~TYPENAME := tok[2]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-pseudo -grammar=%cxx-bnf-file -source=%s --print-forest | FileCheck %s
|
||||
// RUN: clang-pseudo -grammar=cxx -source=%s --print-forest | FileCheck %s
|
||||
void s(int[]);
|
||||
// CHECK: parameter-declaration-clause~parameter-declaration := decl-specifier-seq abstract-declarator
|
||||
// CHECK-NEXT: ├─decl-specifier-seq~INT := tok[3]
|
||||
|
|
Loading…
Reference in New Issue