eduucaldas updated this revision to Diff 292832. eduucaldas added a comment.
Fix typo Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87895/new/ https://reviews.llvm.org/D87895 Files: clang/unittests/Tooling/Syntax/BuildTreeTest.cpp Index: clang/unittests/Tooling/Syntax/BuildTreeTest.cpp =================================================================== --- clang/unittests/Tooling/Syntax/BuildTreeTest.cpp +++ clang/unittests/Tooling/Syntax/BuildTreeTest.cpp @@ -167,6 +167,23 @@ )txt")); } +TEST_P(BuildSyntaxTreeTest, Simple_BackslashInsideToken) { + EXPECT_TRUE(treeDumpEqual( + R"cpp( +in\ +t a; +)cpp", + R"txt( +TranslationUnit Detached +`-SimpleDeclaration + |-'in\ +t' + |-SimpleDeclarator Declarator + | `-'a' + `-';' +)txt")); +} + TEST_P(BuildSyntaxTreeTest, If) { EXPECT_TRUE(treeDumpEqualOnAnnotations( R"cpp(
Index: clang/unittests/Tooling/Syntax/BuildTreeTest.cpp =================================================================== --- clang/unittests/Tooling/Syntax/BuildTreeTest.cpp +++ clang/unittests/Tooling/Syntax/BuildTreeTest.cpp @@ -167,6 +167,23 @@ )txt")); } +TEST_P(BuildSyntaxTreeTest, Simple_BackslashInsideToken) { + EXPECT_TRUE(treeDumpEqual( + R"cpp( +in\ +t a; +)cpp", + R"txt( +TranslationUnit Detached +`-SimpleDeclaration + |-'in\ +t' + |-SimpleDeclarator Declarator + | `-'a' + `-';' +)txt")); +} + TEST_P(BuildSyntaxTreeTest, If) { EXPECT_TRUE(treeDumpEqualOnAnnotations( R"cpp(
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits