I see the equivlanent TraverseStmt() method now, but I do not see a way to get statments fron the ASTContext.<br><br><br><div class="gmail_quote">On Thu, Jun 9, 2011 at 2:35 AM, Adrien Chauve <span dir="ltr"><<a href="mailto:adrien.chauve@gmail.com">adrien.chauve@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You need to launch at some time the traversal of the AST. One way is<br>
to call Traverse in the virtual method HandleTranslationUnit.<br>
Please see my first answer to this thread.<br>
<font color="#888888"><br>
Adrien<br>
</font><div><div></div><div class="h5"><br>
On Thu, Jun 9, 2011 at 04:15, ret val <<a href="mailto:retval386@gmail.com">retval386@gmail.com</a>> wrote:<br>
> I have been editing the PrintFunctionNames<br>
> example(llvm/tools/clang/examples) and the trivial VisitCallExpr() method I<br>
> implemented does not run. Does anyone mind taking a look at it?<br>
><br>
> The full file is here: <a href="https://gist.github.com/1015907" target="_blank">https://gist.github.com/1015907</a><br>
><br>
> Thanks again<br>
><br>
> On Wed, Jun 8, 2011 at 4:02 PM, Joshua Cranmer <<a href="mailto:Pidgeot18@gmail.com">Pidgeot18@gmail.com</a>> wrote:<br>
>><br>
>> On 6/8/2011 12:50 PM, ret val wrote:<br>
>> > I do not see the VisitCallExpr method in the code or in Doxygen.<br>
>> ><br>
>> > It looks like the RecursiveASTVisitor class can give me statements,<br>
>> > where statements become expressions become function calls by<br>
>> > inheritance. Or am I missing something?<br>
>> So, most of the functions in RecursiveASTVisitor are defined via macro<br>
>> calls, which makes finding out what they are difficult. For my own<br>
>> sanity, I used a simple plugin to dump out all of the functions of<br>
>> RecursiveASTVisitor; their output can be found at<br>
>> <<a href="http://www.tjhsst.edu/%7Ejcranmer/visitorfuncs.txt" target="_blank">http://www.tjhsst.edu/~jcranmer/visitorfuncs.txt</a>>.<br>
>><br>
>> --<br>
>> Joshua Cranmer<br>
>> News submodule owner<br>
>> JSHydra author<br>
>><br>
>><br>
>> _______________________________________________<br>
>> cfe-dev mailing list<br>
>> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
><br>
</div></div></blockquote></div><br>