[cfe-dev] Detecting Macro Expansions

Timothy McClory tmcclory at udel.edu
Wed Jul 27 14:31:13 PDT 2011


Thanks that seems to work.  How can I retrieve the identifier of the macro?

On Wed, Jul 27, 2011 at 12:17 AM, Nico Weber <thakis at chromium.org> wrote:

> Try integerLiteral->getLocation().isMacroID() (untested)
>
> Nico
>
> On Tue, Jul 26, 2011 at 9:08 PM, Timothy McClory <tmcclory at udel.edu>
> wrote:
> > How can I determine if an IntegerLiteral comes from a macro expansion?
> >
> > Thanks
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110727/9229e393/attachment.html>


More information about the cfe-dev mailing list