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.<div><br></div><div>-Alexei<br><br><div class="gmail_quote">

On Mon, Apr 20, 2009 at 4:24 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
On Apr 20, 2009, at 12:42 PM, Alexei Svitkine wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What's the best way to get the source range information from a MacroInfo from the Preprocessor?<br>
<br>
The start location is available, but how would one go about getting the end location for the macro definition?<br>
</blockquote>
<br></div>
We don't currently store this, but it would make sense to add.  Please prepare a patch, thanks!<br><font color="#888888">
<br>
-Chris<br>
</font></blockquote></div><br></div>