Skip to content
Snippets Groups Projects
Commit e3a2b814 authored by Manuel Klimek's avatar Manuel Klimek
Browse files

Make the tutorial easier to compile by adding in some of the details.

Patch by Béatrice Creusillet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176434 91177308-0d34-0410-b5e6-96231b3b80d8
parent 2f8845fa
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment