diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-06-10 10:31:57 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-06-10 10:31:57 +0000 |
commit | e3e210c3aa3c1b289eee669a1d235fc16df384a0 (patch) | |
tree | 6be1bac844ec7e6c94e86b11a7117ab8469785d4 /lib/Frontend/BoostConAction.cpp | |
parent | 022a8a59f6eaacbfe3d934ce940e16099e44eebd (diff) |
Another chunk of the new RecursiveASTVisitor implementation: switch the return
value semantics such that we recurse while the visitors return true, and halt
as soon as one returns false. Patch by csilvers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/BoostConAction.cpp')
-rw-r--r-- | lib/Frontend/BoostConAction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/BoostConAction.cpp b/lib/Frontend/BoostConAction.cpp index 799ec92f01..4a12ff2ebc 100644 --- a/lib/Frontend/BoostConAction.cpp +++ b/lib/Frontend/BoostConAction.cpp @@ -23,7 +23,7 @@ namespace { bool VisitCXXRecordDecl(CXXRecordDecl *D) { std::cout << D->getNameAsString() << std::endl; - return false; + return true; } }; } |