================ @@ -225,8 +257,9 @@ void PassByValueCheck::registerMatchers(MatchFinder *Finder) { .bind("Param"))))), hasDeclaration(cxxConstructorDecl( isCopyConstructor(), unless(isDeleted()), - hasDeclContext( - cxxRecordDecl(isMoveConstructible()))))))) + hasDeclContext(cxxRecordDecl( + isMoveConstructibleInBoundCXXRecordDecl( ---------------- PiotrZSL wrote:
Maybe this could be checked in line 236, we got there record so just check if move constructor is public.. https://github.com/llvm/llvm-project/pull/141304 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits