diff options
-rw-r--r-- | docs/LibASTMatchersTutorial.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/LibASTMatchersTutorial.rst b/docs/LibASTMatchersTutorial.rst index 3d0af67cb5..381c558705 100644 --- a/docs/LibASTMatchersTutorial.rst +++ b/docs/LibASTMatchersTutorial.rst @@ -261,6 +261,11 @@ from a ``ClangTool``. More code! Add the following to ``LoopConvert.cpp``: :: + #include "clang/ASTMatchers/ASTMatchers.h" + #include "clang/ASTMatchers/ASTMatchFinder.h" + + using namespace clang; + using namespace clang::ast_matchers; StatementMatcher LoopMatcher = forStmt(hasLoopInit(declStmt(hasSingleDecl(varDecl( |