diff options
Diffstat (limited to 'unittests/Tooling/TestVisitor.h')
-rw-r--r-- | unittests/Tooling/TestVisitor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/unittests/Tooling/TestVisitor.h b/unittests/Tooling/TestVisitor.h index 5ee118ebdc..ec751c350e 100644 --- a/unittests/Tooling/TestVisitor.h +++ b/unittests/Tooling/TestVisitor.h @@ -31,7 +31,7 @@ namespace clang { /// This is a drop-in replacement for RecursiveASTVisitor itself, with the /// additional capability of running it over a snippet of code. /// -/// Visits template instantiations (but not implicit code) by default. +/// Visits template instantiations and implicit code by default. template <typename T> class TestVisitor : public RecursiveASTVisitor<T> { public: @@ -56,6 +56,10 @@ public: return true; } + bool shouldVisitImplicitCode() const { + return true; + } + protected: virtual ASTFrontendAction* CreateTestAction() { return new TestAction(this); |