<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
On 6/8/2011 10:11 AM, ret val wrote:
<blockquote
cite="mid:BANLkTin4-+MwMM5DuZJoCyhy3eBwYumdzw@mail.gmail.com"
type="cite">I think I should use a ASTConsumer and implement the
HandleTranslationUnit method. From there I would have a ASTContext
and I'm not entirely sure where I could find the function calls.<br>
</blockquote>
<br>
Have your consumer also inherit from RecursiveASTVisitor, and then
implement VisitCallExpr. Example code that I have done can be found
here:
<a class="moz-txt-link-rfc2396E" href="https://github.com/jcranmer/dxr/blob/clang/xref-tools/cxx-clang/dxr-index.cpp"><https://github.com/jcranmer/dxr/blob/clang/xref-tools/cxx-clang/dxr-index.cpp></a>.<br>
<blockquote
cite="mid:BANLkTin4-+MwMM5DuZJoCyhy3eBwYumdzw@mail.gmail.com"
type="cite"><br>
Thanks<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Joshua Cranmer
News submodule owner
JSHydra author</pre>
</body>
</html>