Hi everybody,
I ran through Steps 1 and 2 of the above mentioned tutorial, and met
some difficulties completing Step 2 due to mere missing "#include" and
"using namespace". I propose the attached patch, in the hope this is the
right place to do it.
Regards,
Béatrice.
--
Béatrice Creusillet
SILKAN - www.silkan.com
Index: LibASTMatchersTutorial.rst
===================================================================
--- LibASTMatchersTutorial.rst (revision 176433)
+++ LibASTMatchersTutorial.rst (working copy)
@@ -261,7 +261,12 @@
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(
hasInitializer(integerLiteral(equals(0)))))))).bind("forLoop");
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits