Lines Matching refs:Constructor
3844 DeclAccessPair FoundDecl, CXXConstructorDecl *Constructor, QualType T, in AddConstructorInitializationStep() argument
3852 S.Function.Function = Constructor; in AddConstructorInitializationStep()
4079 if (Info.Constructor->getNumParams() == 0) in hasCopyOrMoveCtorParam()
4083 Info.Constructor->getParamDecl(0)->getType().getNonReferenceType(); in hasCopyOrMoveCtorParam()
4102 if (!Info.Constructor || Info.Constructor->isInvalidDecl()) in ResolveConstructorOverload()
4105 if (OnlyListConstructors && !S.isInitListConstructor(Info.Constructor)) in ResolveConstructorOverload()
4140 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, Args, in ResolveConstructorOverload()
4783 if (!Info.Constructor) in TryRefInitWithConversionFunction()
4786 if (!Info.Constructor->isInvalidDecl() && in TryRefInitWithConversionFunction()
4787 Info.Constructor->isConvertingConstructor(/*AllowExplicit*/true)) { in TryRefInitWithConversionFunction()
4796 Info.Constructor, Info.FoundDecl, Initializer, CandidateSet, in TryRefInitWithConversionFunction()
5704 if (!Info.Constructor) in TryUserDefinedConversion()
5707 if (!Info.Constructor->isInvalidDecl() && in TryUserDefinedConversion()
5708 Info.Constructor->isConvertingConstructor(/*AllowExplicit*/true)) { in TryUserDefinedConversion()
5716 S.AddOverloadCandidate(Info.Constructor, Info.FoundDecl, in TryUserDefinedConversion()
6823 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function); in CopyObject() local
6827 S.CheckConstructorAccess(Loc, Constructor, Best->FoundDecl, Entity, in CopyObject()
6841 for (unsigned I = 1, N = Constructor->getNumParams(); I != N; ++I) { in CopyObject()
6842 ParmVarDecl *Parm = Constructor->getParamDecl(I); in CopyObject()
6850 S.BuildCXXDefaultArgExpr(Loc, Constructor, Parm); in CopyObject()
6859 if (S.CompleteConstructorCall(Constructor, T, CurInitExpr, Loc, in CopyObject()
6890 Loc, T, Best->FoundDecl, Constructor, Elidable, ConstructorArgs, in CopyObject()
7017 CXXConstructorDecl *Constructor in PerformConstructorInitialization() local
7031 assert(Constructor->getParent() && "No parent class for constructor."); in PerformConstructorInitialization()
7032 if (Constructor->isDefaulted() && Constructor->isDefaultConstructor() && in PerformConstructorInitialization()
7033 Constructor->isTrivial() && !Constructor->isUsed(false)) { in PerformConstructorInitialization()
7035 S.DefineImplicitDefaultConstructor(Loc, Constructor); in PerformConstructorInitialization()
7055 if (S.CompleteConstructorCall(Constructor, Step.Type, Args, Loc, in PerformConstructorInitialization()
7073 CXXConstructorDecl *CalleeDecl = Constructor; in PerformConstructorInitialization()
7076 CalleeDecl = S.findInheritingConstructor(Loc, Constructor, Shadow); in PerformConstructorInitialization()
7112 Constructor, /*Elidable=*/true, in PerformConstructorInitialization()
7123 Constructor, in PerformConstructorInitialization()
7136 S.CheckConstructorAccess(Loc, Constructor, Step.Function.FoundDecl, Entity); in PerformConstructorInitialization()
8881 if (CXXConstructorDecl *Constructor = dyn_cast<CXXConstructorDecl>(Fn)) { in Perform() local
8889 if (S.CompleteConstructorCall(Constructor, Step->Type, in Perform()
8896 Loc, Step->Type, FoundFn, Constructor, ConstructorArgs, in Perform()
8904 S.CheckConstructorAccess(Kind.getLocation(), Constructor, FoundFn, in Perform()
9890 CXXConstructorDecl *Constructor in Diagnose() local
9893 if (auto Inherited = Constructor->getInheritedConstructor()) in Diagnose()
9897 << (InheritedFrom ? 2 : Constructor->isImplicit() ? 1 : 0) in Diagnose()
9898 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()
9910 << (InheritedFrom ? 2 : Constructor->isImplicit() ? 1 : 0) in Diagnose()
9911 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()
9973 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(S.CurContext); in Diagnose() local
9975 << (Constructor->getInheritedConstructor() ? 2 : in Diagnose()
9976 Constructor->isImplicit() ? 1 : 0) in Diagnose()
9977 << S.Context.getTypeDeclType(Constructor->getParent()) in Diagnose()