Lines Matching defs:CopyConstructor
8659 if (CXXConstructorDecl *CopyConstructor =
8661 ExceptSpec.CalledDecl(Base->getLocStart(), CopyConstructor);
8669 if (CXXConstructorDecl *CopyConstructor =
8671 ExceptSpec.CalledDecl(Base->getLocStart(), CopyConstructor);
8679 if (CXXConstructorDecl *CopyConstructor =
8681 ExceptSpec.CalledDecl(Field->getLocation(), CopyConstructor);
8715 CXXConstructorDecl *CopyConstructor = CXXConstructorDecl::Create(
8721 CopyConstructor->setAccess(AS_public);
8722 CopyConstructor->setDefaulted();
8723 CopyConstructor->setTrivial(ClassDecl->hasTrivialCopyConstructor());
8729 ParmVarDecl *FromParam = ParmVarDecl::Create(Context, CopyConstructor,
8735 CopyConstructor->setParams(FromParam);
8738 PushOnScopeChains(CopyConstructor, S, false);
8739 ClassDecl->addDecl(CopyConstructor);
8746 if (ShouldDeleteSpecialMember(CopyConstructor, CXXCopyConstructor))
8747 CopyConstructor->setDeletedAsWritten();
8749 return CopyConstructor;
8753 CXXConstructorDecl *CopyConstructor) {
8754 assert((CopyConstructor->isDefaulted() &&
8755 CopyConstructor->isCopyConstructor() &&
8756 !CopyConstructor->doesThisDeclarationHaveABody() &&
8757 !CopyConstructor->isDeleted()) &&
8760 CXXRecordDecl *ClassDecl = CopyConstructor->getParent();
8763 ImplicitlyDefinedFunctionScope Scope(*this, CopyConstructor);
8766 if (SetCtorInitializers(CopyConstructor, 0, 0, /*AnyErrors=*/false) ||
8770 CopyConstructor->setInvalidDecl();
8773 CopyConstructor->setBody(ActOnCompoundStmt(CopyConstructor->getLocation(),
8774 CopyConstructor->getLocation(),
8778 CopyConstructor->setImplicitlyDefined(true);
8781 CopyConstructor->setUsed();
8783 L->CompletedImplicitDefinition(CopyConstructor);