diff options
author | Marcel Hlopko <hlopko@google.com> | 2020-04-07 14:58:10 +0200 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2020-04-07 15:07:16 +0200 |
commit | 1bf055c9891f1a5ab2ff6a04348bd83fcc0a9cde (patch) | |
tree | bcc42336b3e7ce0f25b13cfbb22fa34308d33df5 /clang/unittests/Tooling/Syntax/TreeTest.cpp | |
parent | d66afd6dde542dc373f87e07fe764c071fe20d76 (diff) | |
download | llvm-1bf055c9891f1a5ab2ff6a04348bd83fcc0a9cde.zip llvm-1bf055c9891f1a5ab2ff6a04348bd83fcc0a9cde.tar.gz llvm-1bf055c9891f1a5ab2ff6a04348bd83fcc0a9cde.tar.bz2 |
[Syntax] Add mapping from spelled to expanded tokens for TokenBuffer
Summary:
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.
Reviewers: gribozavr2, sammccall
Reviewed By: gribozavr2
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77209
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/Syntax/TreeTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/Syntax/TreeTest.cpp b/clang/unittests/Tooling/Syntax/TreeTest.cpp index 8230457..d11a365 100644 --- a/clang/unittests/Tooling/Syntax/TreeTest.cpp +++ b/clang/unittests/Tooling/Syntax/TreeTest.cpp @@ -1215,6 +1215,9 @@ void test() { | `-} `-} )txt"); +} + +TEST_F(SyntaxTreeTest, ModifiableNodes) { // All nodes can be mutated. expectTreeDumpEqual( R"cpp( |