aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Tooling/Syntax/TreeTest.cpp
diff options
context:
space:
mode:
authorMarcel Hlopko <hlopko@google.com>2020-04-07 14:58:10 +0200
committerDmitri Gribenko <gribozavr@gmail.com>2020-04-07 15:07:16 +0200
commit1bf055c9891f1a5ab2ff6a04348bd83fcc0a9cde (patch)
treebcc42336b3e7ce0f25b13cfbb22fa34308d33df5 /clang/unittests/Tooling/Syntax/TreeTest.cpp
parentd66afd6dde542dc373f87e07fe764c071fe20d76 (diff)
downloadllvm-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.cpp3
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(