Skip to content

Commit 611aa5d

Browse files
committed
[NFC] Remove useless outside matcher
1 parent 4da01f9 commit 611aa5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ void UseStructuredBindingCheck::registerMatchers(MatchFinder *Finder) {
275275
hasType(qualType(anyOf(PairType, lValueReferenceType(
276276
pointee(PairType))))
277277
.bind(PairVarTypeName)),
278-
hasInitializer(expr(ignoringCopyCtorAndImplicitCast(
279-
expr().bind(InitExprName)))))
278+
hasInitializer(ignoringCopyCtorAndImplicitCast(
279+
expr().bind(InitExprName))))
280280
.bind(PairDeclName)),
281281
hasNextTwoVarDecl(
282282
llvm::SmallVector<ast_matchers::internal::Matcher<VarDecl>>{
@@ -296,8 +296,8 @@ void UseStructuredBindingCheck::registerMatchers(MatchFinder *Finder) {
296296
varDecl(hasType(qualType(anyOf(PairType, lValueReferenceType(
297297
pointee(PairType))))
298298
.bind(PairVarTypeName)),
299-
hasInitializer(expr(ignoringCopyCtorAndImplicitCast(
300-
expr().bind(InitExprName)))))
299+
hasInitializer(ignoringCopyCtorAndImplicitCast(
300+
expr().bind(InitExprName))))
301301
.bind(PairDeclName)),
302302
hasBody(
303303
compoundStmt(

0 commit comments

Comments
 (0)