[cfe-dev] [Lex] getLocForEndOfToken
Jonas Toth via cfe-dev
cfe-dev at lists.llvm.org
Fri Sep 21 00:29:26 PDT 2018
Hi,
do you want the location before or after the macro-expansion?
Best, Jonas
Am 21.09.2018 um 07:21 schrieb Xing GUO via cfe-dev:
> Hi,
>
> I'm reading the clang source codes, and a little bit confused about
> why we cannot get the location for end of a token that nested in macros.
>
> e.g.
> ```cpp
> #define TEST_MACRO(x) ((void) x)
>
> ... some codes
> TEST_MACRO(a && bbbbbb);
> ... some codes
> ```
>
> I want a location that points to the end of `bbbbbb[exactly here]`.
>
> Is there any efficient way to achieve this? Thanks!
>
> Best Regards,
> Xing
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180921/d2521e04/attachment.html>
More information about the cfe-dev
mailing list