Skip to content

Commit 0607998

Browse files
committed
[NFC] Should not use auto here
1 parent 48b7134 commit 0607998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ AST_POLYMORPHIC_MATCHER(isInMarco,
166166
AST_MATCHER_P(Expr, ignoringCopyCtorAndImplicitCast,
167167
ast_matchers::internal::Matcher<Expr>, InnerMatcher) {
168168
if (const auto *CtorE = dyn_cast<CXXConstructExpr>(&Node)) {
169-
if (const auto *CtorD = CtorE->getConstructor();
169+
if (const CXXConstructorDecl *CtorD = CtorE->getConstructor();
170170
CtorD->isCopyConstructor() && CtorE->getNumArgs() == 1) {
171171
return InnerMatcher.matches(*CtorE->getArg(0)->IgnoreImpCasts(), Finder,
172172
Builder);

0 commit comments

Comments
 (0)