[cfe-dev] Sema usage example

Tzafrir Rehan tzafrir at cs.technion.ac.il
Tue Nov 16 03:56:12 PST 2010


Thanks, that clarifies things a bit.

On Mon, Nov 15, 2010 at 7:48 PM, Chris Lattner <clattner at apple.com> wrote:

>
> On Nov 15, 2010, at 7:04 AM, Tzafrir Rehan wrote:
>
> > Hi all,
> >
> > Can anyone please point me at some code that uses the Sema interface?
>
> Hi Tzafrir,
>
> Sema is really a private interface used by the Parser to construct the AST.
>    You probably don't want to interact with it directly.
>
> > What I'd like to achieve at this point is a printout of all integer
> variables in the code and all mutations performed on them.
>
> The best way to walk the AST is to write an ASTConsumer.  With it, you can
> walk the AST and find all the integer variables etc.
>
> -Chris
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101116/0a330d7a/attachment.html>


More information about the cfe-dev mailing list