Skip to content

Commit 23b879c

Browse files
committed
fixup! clang-format
1 parent b156e5a commit 23b879c

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
@@ -1608,14 +1608,16 @@ DecompositionDecl ''
16081608

16091609
{
16101610
auto FN = ast_matchers::match(
1611-
functionDecl(hasName("decompTuple"), hasDescendant(callExpr(hasAncestor(varDecl(hasName("a"),
1612-
hasAncestor(bindingDecl())))).bind("decomp_call"))),
1611+
functionDecl(hasName("decompTuple"),
1612+
hasDescendant(callExpr(hasAncestor(varDecl(
1613+
hasName("a"),
1614+
hasAncestor(bindingDecl()))))
1615+
.bind("decomp_call"))),
16131616
AST2->getASTContext());
16141617
EXPECT_EQ(FN.size(), 1u);
16151618

1616-
EXPECT_EQ(
1617-
dumpASTString(TK_AsIs, FN[0].getNodeAs<CallExpr>("decomp_call")),
1618-
R"cpp(
1619+
EXPECT_EQ(dumpASTString(TK_AsIs, FN[0].getNodeAs<CallExpr>("decomp_call")),
1620+
R"cpp(
16191621
CallExpr
16201622
|-ImplicitCastExpr
16211623
| `-DeclRefExpr 'get'
@@ -1632,8 +1634,11 @@ DeclRefExpr ''
16321634

16331635
{
16341636
auto FN = ast_matchers::match(
1635-
functionDecl(hasName("decompTuple"), hasDescendant(callExpr(hasAncestor(varDecl(hasName("c"),
1636-
hasAncestor(bindingDecl())))).bind("decomp_call_with_default"))),
1637+
functionDecl(hasName("decompTuple"),
1638+
hasDescendant(callExpr(hasAncestor(varDecl(
1639+
hasName("c"),
1640+
hasAncestor(bindingDecl()))))
1641+
.bind("decomp_call_with_default"))),
16371642
AST2->getASTContext());
16381643
EXPECT_EQ(FN.size(), 1u);
16391644

@@ -1649,9 +1654,10 @@ CallExpr
16491654
`-IntegerLiteral
16501655
)cpp");
16511656

1652-
EXPECT_EQ(dumpASTString(TK_IgnoreUnlessSpelledInSource,
1653-
FN[0].getNodeAs<CallExpr>("decomp_call_with_default")),
1654-
R"cpp(
1657+
EXPECT_EQ(
1658+
dumpASTString(TK_IgnoreUnlessSpelledInSource,
1659+
FN[0].getNodeAs<CallExpr>("decomp_call_with_default")),
1660+
R"cpp(
16551661
DeclRefExpr ''
16561662
)cpp");
16571663
}

0 commit comments

Comments
 (0)