[cfe-dev] How to get source range from MacroInfo?
Alexei Svitkine
alexei.svitkine at gmail.com
Mon Apr 20 13:57:02 PDT 2009
Patch attached. I've tested it manually with a number of cases (object like
macros, function like macros, #define's with no value) and the results are
as expected.
-Alexei
On Mon, Apr 20, 2009 at 4:24 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Apr 20, 2009, at 12:42 PM, Alexei Svitkine wrote:
>
> What's the best way to get the source range information from a MacroInfo
>> from the Preprocessor?
>>
>> The start location is available, but how would one go about getting the
>> end location for the macro definition?
>>
>
> We don't currently store this, but it would make sense to add. Please
> prepare a patch, thanks!
>
> -Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090420/5ef49988/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MacroInfo.diff
Type: application/octet-stream
Size: 2824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090420/5ef49988/attachment.obj>
More information about the cfe-dev
mailing list