Lines Matching refs:Constructor
3713 DeclAccessPair FoundDecl, CXXConstructorDecl *Constructor, QualType T, in AddConstructorInitializationStep() argument
3721 S.Function.Function = Constructor; in AddConstructorInitializationStep()
3941 if (Info.Constructor->getNumParams() == 0) in hasCopyOrMoveCtorParam()
3945 Info.Constructor->getParamDecl(0)->getType().getNonReferenceType(); in hasCopyOrMoveCtorParam()
3967 if (!Info.Constructor || Info.Constructor->isInvalidDecl()) in ResolveConstructorOverload()
3970 if (OnlyListConstructors && !S.isInitListConstructor(Info.Constructor)) in ResolveConstructorOverload()
4005 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, Args, in ResolveConstructorOverload()
4618 if (!Info.Constructor) in TryRefInitWithConversionFunction()
4621 if (!Info.Constructor->isInvalidDecl() && in TryRefInitWithConversionFunction()
4622 Info.Constructor->isConvertingConstructor(/*AllowExplicit*/true)) { in TryRefInitWithConversionFunction()
4631 Info.Constructor, Info.FoundDecl, Initializer, CandidateSet, in TryRefInitWithConversionFunction()
5287 if (!Info.Constructor) in TryUserDefinedConversion()
5290 if (!Info.Constructor->isInvalidDecl() && in TryUserDefinedConversion()
5291 Info.Constructor->isConvertingConstructor(/*AllowExplicit*/true)) { in TryUserDefinedConversion()
5299 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in TryUserDefinedConversion()
6357 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function); in CopyObject() local
6361 S.CheckConstructorAccess(Loc, Constructor, Best->FoundDecl, Entity, in CopyObject()
6375 for (unsigned I = 1, N = Constructor->getNumParams(); I != N; ++I) { in CopyObject()
6376 ParmVarDecl *Parm = Constructor->getParamDecl(I); in CopyObject()
6384 S.BuildCXXDefaultArgExpr(Loc, Constructor, Parm); in CopyObject()
6393 if (S.CompleteConstructorCall(Constructor, T, CurInitExpr, Loc, in CopyObject()
6423 CurInit = S.BuildCXXConstructExpr(Loc, T, Best->FoundDecl, Constructor, in CopyObject()
6553 CXXConstructorDecl *Constructor in PerformConstructorInitialization() local
6567 assert(Constructor->getParent() && "No parent class for constructor."); in PerformConstructorInitialization()
6568 if (Constructor->isDefaulted() && Constructor->isDefaultConstructor() && in PerformConstructorInitialization()
6569 Constructor->isTrivial() && !Constructor->isUsed(false)) { in PerformConstructorInitialization()
6571 S.DefineImplicitDefaultConstructor(Loc, Constructor); in PerformConstructorInitialization()
6591 if (S.CompleteConstructorCall(Constructor, Step.Type, Args, Loc, in PerformConstructorInitialization()
6598 if (S.DiagnoseUseOfDecl(Constructor, Loc)) in PerformConstructorInitialization()
6609 CXXConstructorDecl *CalleeDecl = Constructor; in PerformConstructorInitialization()
6612 CalleeDecl = S.findInheritingConstructor(Loc, Constructor, Shadow); in PerformConstructorInitialization()
6651 Constructor, /*Elidable=*/true, in PerformConstructorInitialization()
6662 Constructor, in PerformConstructorInitialization()
6675 S.CheckConstructorAccess(Loc, Constructor, Step.Function.FoundDecl, Entity); in PerformConstructorInitialization()
8373 if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(Fn)) { in Perform() local
8381 if (S.CompleteConstructorCall(Constructor, Step->Type, in Perform()
8388 FoundFn, Constructor, in Perform()
8399 S.CheckConstructorAccess(Kind.getLocation(), Constructor, FoundFn, in Perform()
9375 CXXConstructorDecl *Constructor in Diagnose() local
9378 if (auto Inherited = Constructor->getInheritedConstructor()) in Diagnose()
9382 << (InheritedFrom ? 2 : Constructor->isImplicit() ? 1 : 0) in Diagnose()
9383 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()
9395 << (InheritedFrom ? 2 : Constructor->isImplicit() ? 1 : 0) in Diagnose()
9396 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()
9458 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext); in Diagnose() local
9460 << (Constructor->getInheritedConstructor() ? 2 : in Diagnose()
9461 Constructor->isImplicit() ? 1 : 0) in Diagnose()
9462 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()