[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] Detecting Macro Expansions
From:       Timothy McClory <tmcclory () udel ! edu>
Date:       2011-07-27 21:31:13
Message-ID: CAGahvUOph83LU9RWfq1R-RUQvLHL1F45639OE2hvn1T3wDg-vQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@chromium.org> wrote:

> Try integerLiteral->getLocation().isMacroID() (untested)
>
> Nico
>
> On Tue, Jul 26, 2011 at 9:08 PM, Timothy McClory <tmcclory@udel.edu>
> wrote:
> > How can I determine if an IntegerLiteral comes from a macro expansion?
> >
> > Thanks
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev@cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> >
> >
>

[Attachment #5 (text/html)]

<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: \
13px; border-collapse: collapse; ">Thanks that seems to work.  How can I retrieve the \
identifier of the macro?</span><br><br><div class="gmail_quote"> On Wed, Jul 27, 2011 \
at 12:17 AM, Nico Weber <span dir="ltr">&lt;<a \
href="mailto:thakis@chromium.org">thakis@chromium.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> Try integerLiteral-&gt;getLocation().isMacroID() \
(untested)<br> <br>
Nico<br>
<div class="im"><br>
On Tue, Jul 26, 2011 at 9:08 PM, Timothy McClory &lt;<a \
href="mailto:tmcclory@udel.edu">tmcclory@udel.edu</a>&gt; wrote:<br> &gt; How can I \
determine if an IntegerLiteral comes from a macro expansion?<br> &gt;<br>
&gt; Thanks<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; cfe-dev mailing list<br>
&gt; <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
&gt; <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" \
target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br> &gt;<br>
&gt;<br>
</blockquote></div><br>



_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic