On Thu, May 12, 2016 at 9:22 AM Miklos Vajna <vmik...@vmiklos.hu> wrote:

> vmiklos added a comment.
>
> Hi,
>
> > Also: should we add a check that the token of the source location we
> find actually has the old name?
>
>
> 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.
>

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.


>
> Thanks,
>
> Miklos
>
>
> Repository:
>   rL LLVM
>
> http://reviews.llvm.org/D20150
>
>
>
>
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to