[cfe-dev] [Lex] getLocForEndOfToken

Xing GUO via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 20 22:21:40 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180921/7d35eb5b/attachment.html>


More information about the cfe-dev mailing list