Returns the first token in every mapping where the token is an identifier.
This API is required to be able to highlight macro expansions in clangd.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D66470
[Syntax] Added function to get macro expansion tokens to TokenBuffer. ClosedPublic Authored by jvikstrom on Aug 20 2019, 4:57 AM.
Details Summary Returns the first token in every mapping where the token is an identifier.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 20 2019, 6:01 AM Closed by commit rL369385: [Syntax] Added function to get macro expansion tokens to TokenBuffer. (authored by jvikstrom). · Explain WhyAug 20 2019, 6:33 AM This revision was automatically updated to reflect the committed changes. jvikstrom marked 2 inline comments as done.
Revision Contents
Diff 216135 cfe/trunk/include/clang/Tooling/Syntax/Tokens.h
cfe/trunk/lib/Tooling/Syntax/Tokens.cpp
cfe/trunk/unittests/Tooling/Syntax/TokensTest.cpp
|