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.
llvm-svn: 105787
diff --git a/clang/lib/Frontend/BoostConAction.cpp b/clang/lib/Frontend/BoostConAction.cpp
index 799ec92..4a12ff2 100644
--- a/clang/lib/Frontend/BoostConAction.cpp
+++ b/clang/lib/Frontend/BoostConAction.cpp
@@ -23,7 +23,7 @@
bool VisitCXXRecordDecl(CXXRecordDecl *D) {
std::cout << D->getNameAsString() << std::endl;
- return false;
+ return true;
}
};
}