Same restrictions apply as in the other direction: macro arguments are
not supported yet, only full macro expansions can be mapped.
Taking over from https://reviews.llvm.org/D72581.
Paths
| Differential D77209
[Syntax] Add mapping from spelled to expanded tokens for TokenBuffer ClosedPublic Authored by hlopko on Apr 1 2020, 4:02 AM.
Details Summary Same restrictions apply as in the other direction: macro arguments are Taking over from https://reviews.llvm.org/D72581.
Diff Detail
Unit TestsFailed
Event Timeline
Comment Actions Adressing comments.
This revision is now accepted and ready to land.Apr 7 2020, 5:57 AM Closed by commit rG1bf055c9891f: [Syntax] Add mapping from spelled to expanded tokens for TokenBuffer (authored by hlopko, committed by gribozavr). · Explain WhyApr 7 2020, 6:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 254157 clang/include/clang/Tooling/Syntax/Tokens.h
clang/lib/Tooling/Syntax/Tokens.cpp
clang/unittests/Tooling/Syntax/TokensTest.cpp
|
It would be great to add an is_sorted assertion to the builder to check ordering of mappings based on both spelled and expanded token indices.