================
@@ -48,6 +49,14 @@ static FunctionDecl *lookupBuiltinFunction(Sema &S,
StringRef Name) {
"Since this is a builtin it should always resolve!");
return cast<FunctionDecl>(R.getFoundDecl());
}
+
+CXXConstructorDecl *lookupCopyConstructor(QualType ResTy) {
+ assert(ResTy->isRecordType() && "not a CXXRecord type");
+ for (auto *CD : ResTy->getAsCXXRecordDecl()->ctors())
----------------
llvm-beanz wrote:
The more correct way to do this is probably to use `Sema::LookupSpecialMember`.
I'm not sure it makes much difference, but that approach does allow for
different handling based on overloadable cases.
https://github.com/llvm/llvm-project/pull/156544
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits