Skip to content

Commit 8532aca

Browse files
committed
fixup! clang-format
1 parent 6625057 commit 8532aca

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

clang/unittests/AST/ASTTraverserTest.cpp

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,14 +1604,16 @@ DecompositionDecl ''
16041604

16051605
{
16061606
auto FN = ast_matchers::match(
1607-
functionDecl(hasName("decompTuple"), hasDescendant(callExpr(hasAncestor(varDecl(hasName("a"),
1608-
hasAncestor(bindingDecl())))).bind("decomp_call"))),
1607+
functionDecl(hasName("decompTuple"),
1608+
hasDescendant(callExpr(hasAncestor(varDecl(
1609+
hasName("a"),
1610+
hasAncestor(bindingDecl()))))
1611+
.bind("decomp_call"))),
16091612
AST2->getASTContext());
16101613
EXPECT_EQ(FN.size(), 1u);
16111614

1612-
EXPECT_EQ(
1613-
dumpASTString(TK_AsIs, FN[0].getNodeAs<CallExpr>("decomp_call")),
1614-
R"cpp(
1615+
EXPECT_EQ(dumpASTString(TK_AsIs, FN[0].getNodeAs<CallExpr>("decomp_call")),
1616+
R"cpp(
16151617
CallExpr
16161618
|-ImplicitCastExpr
16171619
| `-DeclRefExpr 'get'
@@ -1628,8 +1630,11 @@ DeclRefExpr ''
16281630

16291631
{
16301632
auto FN = ast_matchers::match(
1631-
functionDecl(hasName("decompTuple"), hasDescendant(callExpr(hasAncestor(varDecl(hasName("c"),
1632-
hasAncestor(bindingDecl())))).bind("decomp_call_with_default"))),
1633+
functionDecl(hasName("decompTuple"),
1634+
hasDescendant(callExpr(hasAncestor(varDecl(
1635+
hasName("c"),
1636+
hasAncestor(bindingDecl()))))
1637+
.bind("decomp_call_with_default"))),
16331638
AST2->getASTContext());
16341639
EXPECT_EQ(FN.size(), 1u);
16351640

@@ -1645,9 +1650,10 @@ CallExpr
16451650
`-IntegerLiteral
16461651
)cpp");
16471652

1648-
EXPECT_EQ(dumpASTString(TK_IgnoreUnlessSpelledInSource,
1649-
FN[0].getNodeAs<CallExpr>("decomp_call_with_default")),
1650-
R"cpp(
1653+
EXPECT_EQ(
1654+
dumpASTString(TK_IgnoreUnlessSpelledInSource,
1655+
FN[0].getNodeAs<CallExpr>("decomp_call_with_default")),
1656+
R"cpp(
16511657
DeclRefExpr ''
16521658
)cpp");
16531659
}

0 commit comments

Comments
 (0)