diff options
author | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | c72c57c9e9b69944e3e009cd5e209634839581d3 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/Tooling/clang-check-ast-dump.cpp | |
parent | 5b20025c30d23d521e12c1f33ec8fa6b821952cd (diff) | |
download | FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.zip FreeBSD-src-c72c57c9e9b69944e3e009cd5e209634839581d3.tar.gz |
Vendor import of clang trunk r178860:
http://llvm.org/svn/llvm-project/cfe/trunk@178860
Diffstat (limited to 'test/Tooling/clang-check-ast-dump.cpp')
-rw-r--r-- | test/Tooling/clang-check-ast-dump.cpp | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/test/Tooling/clang-check-ast-dump.cpp b/test/Tooling/clang-check-ast-dump.cpp index 43686bd..d8643c7 100644 --- a/test/Tooling/clang-check-ast-dump.cpp +++ b/test/Tooling/clang-check-ast-dump.cpp @@ -1,16 +1,21 @@ // RUN: clang-check -ast-dump "%s" -- 2>&1 | FileCheck %s -// CHECK: namespace test_namespace -// CHECK-NEXT: class TheClass -// CHECK: int theMethod(int x) (CompoundStmt -// CHECK-NEXT: (ReturnStmt -// CHECK-NEXT: (BinaryOperator +// CHECK: NamespaceDecl{{.*}}test_namespace +// CHECK-NEXT: CXXRecordDecl{{.*}}TheClass +// CHECK: CXXMethodDecl{{.*}}theMethod +// CHECK-NEXT: ParmVarDecl{{.*}}x +// CHECK-NEXT: CompoundStmt +// CHECK-NEXT: ReturnStmt +// CHECK-NEXT: BinaryOperator // // RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::theMethod "%s" -- 2>&1 | FileCheck -check-prefix CHECK-FILTER %s -// CHECK-FILTER-NOT: namespace test_namespace -// CHECK-FILTER-NOT: class TheClass -// CHECK-FILTER: int theMethod(int x) (CompoundStmt -// CHECK-FILTER-NEXT: (ReturnStmt -// CHECK-FILTER-NEXT: (BinaryOperator +// CHECK-FILTER-NOT: NamespaceDecl +// CHECK-FILTER-NOT: CXXRecordDecl +// CHECK-FILTER: {{^}}Dumping test_namespace::TheClass::theMethod +// CHECK-FILTER-NEXT: {{^}}CXXMethodDecl{{.*}}theMethod +// CHECK-FILTER-NEXT: ParmVarDecl{{.*}}x +// CHECK-FILTER-NEXT: CompoundStmt +// CHECK-FILTER-NEXT: ReturnStmt +// CHECK-FILTER-NEXT: BinaryOperator // // RUN: clang-check -ast-print "%s" -- 2>&1 | FileCheck -check-prefix CHECK-PRINT %s // CHECK-PRINT: namespace test_namespace @@ -25,7 +30,9 @@ // // RUN: clang-check -ast-dump -ast-dump-filter test_namespace::TheClass::n "%s" -- 2>&1 | FileCheck -check-prefix CHECK-ATTR %s // CHECK-ATTR: test_namespace -// CHECK-ATTR-NEXT: int n __attribute__((aligned((BinaryOperator +// CHECK-ATTR-NEXT: FieldDecl{{.*}}n +// CHECK-ATTR-NEXT: AlignedAttr +// CHECK-ATTR-NEXT: BinaryOperator // // RUN: clang-check -ast-dump -ast-dump-filter test_namespace::AfterNullNode "%s" -- 2>&1 | FileCheck -check-prefix CHECK-AFTER-NULL %s // CHECK-AFTER-NULL: class AfterNullNode |