Yes, I just don't know what to *do* with it ;-) In other words, I don't see a clear use of the SourceManager API once I have the SourceRange to extract the Expr's source-code.  I don't see any API calls that use SourceRange or beginning and ending SourceLocations for source-code extraction.<div>
<br><div class="gmail_quote">On Wed, Dec 29, 2010 at 3:48 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@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">On Dec 29, 2010, at 10:21 AM, Sam wrote:<br>
> Is there a relatively painless way to get the exact source-code representation of an Expr?  I've looked into using SourceManager::getCharacterData(E->getExprLoc()), but it's not really what I want.  I am fairly new to the clang API so I realize that I may have missed something obvious.<br>

<br>
</div>Well, starting with the expression's SourceRange instead of a single SourceLocation would be a good start.<br>
<font color="#888888"><br>
John.</font></blockquote></div><br></div>