<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, May 12, 2016 at 9:22 AM Miklos Vajna <<a href="mailto:vmiklos@vmiklos.hu">vmiklos@vmiklos.hu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">vmiklos added a comment.<br>
<br>
Hi,<br>
<br>
> Also: should we add a check that the token of the source location we find actually has the old name?<br>
<br>
<br>
Hmm, how do I get the token at a specific SourceLocation? The best I found so far is SourceManager::getBuffer(), but that looks more like looking up raw bytes from the source file at a location, not a token.<br></blockquote><div><br></div><div>Usually you'll want Lexer::getSourceText; that also gets the bytes from the source file, but that's also what we really want to check.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Miklos<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D20150" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20150</a><br>
<br>
<br>
<br>
</blockquote></div></div>