Author: Haojian Wu Date: 2022-07-05T15:17:18+02:00 New Revision: 70c0d92930b28104324b0888d6c6fdde2ffa5a07
URL: https://github.com/llvm/llvm-project/commit/70c0d92930b28104324b0888d6c6fdde2ffa5a07 DIFF: https://github.com/llvm/llvm-project/commit/70c0d92930b28104324b0888d6c6fdde2ffa5a07.diff LOG: [pseudo] Use the prebuilt cxx grammar for the lit tests, NFC. Differential Revision: https://reviews.llvm.org/D129074 Added: Modified: clang-tools-extra/pseudo/test/cxx/capture-list.cpp clang-tools-extra/pseudo/test/cxx/declarator-function.cpp clang-tools-extra/pseudo/test/cxx/declarator-var.cpp clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp clang-tools-extra/pseudo/test/cxx/keyword.cpp clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp clang-tools-extra/pseudo/test/cxx/unsized-array.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/pseudo/test/cxx/capture-list.cpp b/clang-tools-extra/pseudo/test/cxx/capture-list.cpp index 8659a6acae809..fde46e4f0e038 100644 --- a/clang-tools-extra/pseudo/test/cxx/capture-list.cpp +++ b/clang-tools-extra/pseudo/test/cxx/capture-list.cpp @@ -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 ] diff --git a/clang-tools-extra/pseudo/test/cxx/declarator-function.cpp b/clang-tools-extra/pseudo/test/cxx/declarator-function.cpp index 0de4ec14ffcd0..59dccf993af47 100644 --- a/clang-tools-extra/pseudo/test/cxx/declarator-function.cpp +++ b/clang-tools-extra/pseudo/test/cxx/declarator-function.cpp @@ -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 diff --git a/clang-tools-extra/pseudo/test/cxx/declarator-var.cpp b/clang-tools-extra/pseudo/test/cxx/declarator-var.cpp index a5adb43dc3c5c..057ec55b1c925 100644 --- a/clang-tools-extra/pseudo/test/cxx/declarator-var.cpp +++ b/clang-tools-extra/pseudo/test/cxx/declarator-var.cpp @@ -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 diff --git a/clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp b/clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp index 6d7a6823d0bf0..e6dbbddf09062 100644 --- a/clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp +++ b/clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp @@ -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: }; diff --git a/clang-tools-extra/pseudo/test/cxx/keyword.cpp b/clang-tools-extra/pseudo/test/cxx/keyword.cpp index b58c250c763f0..318db4ccc49b9 100644 --- a/clang-tools-extra/pseudo/test/cxx/keyword.cpp +++ b/clang-tools-extra/pseudo/test/cxx/keyword.cpp @@ -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 diff --git a/clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp b/clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp index ec568390ffff5..5a89f4d57a528 100644 --- a/clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp +++ b/clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp @@ -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 diff --git a/clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp b/clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp index 7de65687e1d15..18584ded9b5b4 100644 --- a/clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp +++ b/clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp @@ -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 := diff --git a/clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp b/clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp index 1a05672835a74..5d48a3a43d027 100644 --- a/clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp +++ b/clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp @@ -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] diff --git a/clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp b/clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp index e8f48c64d79f3..02aff285f838c 100644 --- a/clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp +++ b/clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp @@ -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] diff --git a/clang-tools-extra/pseudo/test/cxx/unsized-array.cpp b/clang-tools-extra/pseudo/test/cxx/unsized-array.cpp index 52179e0e2dd41..1f7b106e0e93b 100644 --- a/clang-tools-extra/pseudo/test/cxx/unsized-array.cpp +++ b/clang-tools-extra/pseudo/test/cxx/unsized-array.cpp @@ -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] _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits