aboutsummaryrefslogtreecommitdiff
path: root/test/Tooling
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-10-31 18:46:31 +0000
committerAlexander Kornienko <alexfh@google.com>2012-10-31 18:46:31 +0000
commit30280389d108a5a781e45b8cfd1aa14bed3920d4 (patch)
tree5a54beaf76d0c3a4884df2b0f15ee588f50faed9 /test/Tooling
parentc91b41a64ccce6d1097d85c8c7354ea63a5566a0 (diff)
Fix for -ast-dump-filter
Summary: -ast-dump-filter implementation used to stop AST traversal after traversing a NULL Decl node. Added test and fixed. Reviewers: djasper, klimek, rsmith Reviewed By: djasper CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D93 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167155 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Tooling')
-rw-r--r--test/Tooling/clang-check-ast-dump.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Tooling/clang-check-ast-dump.cpp b/test/Tooling/clang-check-ast-dump.cpp
index 28dcc6eaa8..43686bd250 100644
--- a/test/Tooling/clang-check-ast-dump.cpp
+++ b/test/Tooling/clang-check-ast-dump.cpp
@@ -26,6 +26,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
+//
+// 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
namespace test_namespace {
@@ -40,4 +43,7 @@ public:
// Used to fail with -ast-dump-filter X
template<template<typename T> class C> class Z {};
+// Check that traversal continues after the previous construct.
+class AfterNullNode {};
+
}