[cfe-dev] Get the location of a previous token in Clang

james long via cfe-dev cfe-dev at lists.llvm.org
Sun Oct 25 16:36:07 PDT 2015


Dear all,

I am currently writing a libtooling tool.

Suppose  a 'pragma'  like following is registered:

#pragma tool

It is easily to get the location of token 'tool', but how to get the
location
of token 'pragma' ?  Which API should I use?

Thanks in advance!

Best
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151025/1ab44bbc/attachment.html>


More information about the cfe-dev mailing list