This revision was automatically updated to reflect the committed changes. Closed by commit rG70c0d92930b2: [pseudo] Use the prebuilt cxx grammar for the lit tests, NFC. (authored by hokein).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129074/new/ https://reviews.llvm.org/D129074 Files: 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
Index: clang-tools-extra/pseudo/test/cxx/unsized-array.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/unsized-array.cpp +++ 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] Index: clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/template-empty-type-parameter.cpp +++ 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] Index: clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/predefined-identifier.cpp +++ 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] Index: clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/parameter-decl-clause.cpp +++ 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 := Index: clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/mixed-designator.cpp +++ 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 Index: clang-tools-extra/pseudo/test/cxx/keyword.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/keyword.cpp +++ 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 Index: clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/empty-member-spec.cpp +++ 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: }; Index: clang-tools-extra/pseudo/test/cxx/declarator-var.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/declarator-var.cpp +++ 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 Index: clang-tools-extra/pseudo/test/cxx/declarator-function.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/declarator-function.cpp +++ 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 Index: clang-tools-extra/pseudo/test/cxx/capture-list.cpp =================================================================== --- clang-tools-extra/pseudo/test/cxx/capture-list.cpp +++ 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 ]
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits