Lines Matching refs:Constructor
3685 DeclAccessPair FoundDecl, CXXConstructorDecl *Constructor, QualType T, in AddConstructorInitializationStep() argument
3693 S.Function.Function = Constructor; in AddConstructorInitializationStep()
3913 if (Info.Constructor->getNumParams() == 0) in hasCopyOrMoveCtorParam()
3917 Info.Constructor->getParamDecl(0)->getType().getNonReferenceType(); in hasCopyOrMoveCtorParam()
3939 if (!Info.Constructor || Info.Constructor->isInvalidDecl()) in ResolveConstructorOverload()
3942 if (OnlyListConstructors && !S.isInitListConstructor(Info.Constructor)) in ResolveConstructorOverload()
3977 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, Args, in ResolveConstructorOverload()
4590 if (!Info.Constructor) in TryRefInitWithConversionFunction()
4593 if (!Info.Constructor->isInvalidDecl() && in TryRefInitWithConversionFunction()
4594 Info.Constructor->isConvertingConstructor(/*AllowExplicit*/true)) { in TryRefInitWithConversionFunction()
4603 Info.Constructor, Info.FoundDecl, Initializer, CandidateSet, in TryRefInitWithConversionFunction()
5259 if (!Info.Constructor) in TryUserDefinedConversion()
5262 if (!Info.Constructor->isInvalidDecl() && in TryUserDefinedConversion()
5263 Info.Constructor->isConvertingConstructor(/*AllowExplicit*/true)) { in TryUserDefinedConversion()
5271 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in TryUserDefinedConversion()
6298 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function); in CopyObject() local
6302 S.CheckConstructorAccess(Loc, Constructor, Best->FoundDecl, Entity, in CopyObject()
6316 for (unsigned I = 1, N = Constructor->getNumParams(); I != N; ++I) { in CopyObject()
6317 ParmVarDecl *Parm = Constructor->getParamDecl(I); in CopyObject()
6325 S.BuildCXXDefaultArgExpr(Loc, Constructor, Parm); in CopyObject()
6334 if (S.CompleteConstructorCall(Constructor, T, CurInitExpr, Loc, in CopyObject()
6364 CurInit = S.BuildCXXConstructExpr(Loc, T, Best->FoundDecl, Constructor, in CopyObject()
6494 CXXConstructorDecl *Constructor in PerformConstructorInitialization() local
6508 assert(Constructor->getParent() && "No parent class for constructor."); in PerformConstructorInitialization()
6509 if (Constructor->isDefaulted() && Constructor->isDefaultConstructor() && in PerformConstructorInitialization()
6510 Constructor->isTrivial() && !Constructor->isUsed(false)) { in PerformConstructorInitialization()
6512 S.DefineImplicitDefaultConstructor(Loc, Constructor); in PerformConstructorInitialization()
6532 if (S.CompleteConstructorCall(Constructor, Step.Type, Args, Loc, in PerformConstructorInitialization()
6539 if (S.DiagnoseUseOfDecl(Constructor, Loc)) in PerformConstructorInitialization()
6550 CXXConstructorDecl *CalleeDecl = Constructor; in PerformConstructorInitialization()
6553 CalleeDecl = S.findInheritingConstructor(Loc, Constructor, Shadow); in PerformConstructorInitialization()
6592 Constructor, /*Elidable=*/true, in PerformConstructorInitialization()
6603 Constructor, in PerformConstructorInitialization()
6616 S.CheckConstructorAccess(Loc, Constructor, Step.Function.FoundDecl, Entity); in PerformConstructorInitialization()
8304 if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(Fn)) { in Perform() local
8312 if (S.CompleteConstructorCall(Constructor, Step->Type, in Perform()
8319 FoundFn, Constructor, in Perform()
8330 S.CheckConstructorAccess(Kind.getLocation(), Constructor, FoundFn, in Perform()
9302 CXXConstructorDecl *Constructor in Diagnose() local
9305 if (auto Inherited = Constructor->getInheritedConstructor()) in Diagnose()
9309 << (InheritedFrom ? 2 : Constructor->isImplicit() ? 1 : 0) in Diagnose()
9310 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()
9322 << (InheritedFrom ? 2 : Constructor->isImplicit() ? 1 : 0) in Diagnose()
9323 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()
9385 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext); in Diagnose() local
9387 << (Constructor->getInheritedConstructor() ? 2 : in Diagnose()
9388 Constructor->isImplicit() ? 1 : 0) in Diagnose()
9389 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()