Skip to content

Commit 97db45c

Browse files
committed
rm \n
1 parent e12c39c commit 97db45c

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

clang-tools-extra/clang-tidy/performance/LostStdMoveCheck.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,13 @@ void LostStdMoveCheck::check(const MatchFinder::MatchResult &Result) {
158158
llvm::SmallPtrSet<const DeclRefExpr *, 16> DeclRefs;
159159

160160
SmallVector<BoundNodes, 1> Matches = match(
161-
findAll(declRefExpr(
162-
163-
to(varDecl(equalsNode(MatchedDecl))),
164-
165-
unless(hasAncestor(lambdaExpr(hasAnyCapture(lambdaCapture(
166-
capturesVar(varDecl(equalsNode(MatchedDecl))))))))
161+
findAll(
162+
declRefExpr(to(varDecl(equalsNode(MatchedDecl))),
163+
unless(hasAncestor(lambdaExpr(hasAnyCapture(lambdaCapture(
164+
capturesVar(varDecl(equalsNode(MatchedDecl))))))))
167165

168-
)
169-
.bind("ref")),
166+
)
167+
.bind("ref")),
170168
*MatchedLeafStatement, *Result.Context);
171169
extractNodesByIdTo(Matches, "ref", DeclRefs);
172170
if (DeclRefs.size() > 1) {

0 commit comments

Comments
 (0)