We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b7134 commit 0607998Copy full SHA for 0607998
clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp
@@ -166,7 +166,7 @@ AST_POLYMORPHIC_MATCHER(isInMarco,
166
AST_MATCHER_P(Expr, ignoringCopyCtorAndImplicitCast,
167
ast_matchers::internal::Matcher<Expr>, InnerMatcher) {
168
if (const auto *CtorE = dyn_cast<CXXConstructExpr>(&Node)) {
169
- if (const auto *CtorD = CtorE->getConstructor();
+ if (const CXXConstructorDecl *CtorD = CtorE->getConstructor();
170
CtorD->isCopyConstructor() && CtorE->getNumArgs() == 1) {
171
return InnerMatcher.matches(*CtorE->getArg(0)->IgnoreImpCasts(), Finder,
172
Builder);
0 commit comments