Lines Matching refs:Function
1704 // something that we can't designate (e.g., a member function),
2486 ::AddAddressOverloadResolutionStep(FunctionDecl *Function,
2491 S.Type = Function->getType();
2492 S.Function.HadMultipleCandidates = HadMultipleCandidates;
2493 S.Function.Function = Function;
2494 S.Function.FoundDecl = Found;
2526 InitializationSequence::AddUserConversionStep(FunctionDecl *Function,
2533 S.Function.HadMultipleCandidates = HadMultipleCandidates;
2534 S.Function.Function = Function;
2535 S.Function.FoundDecl = FoundDecl;
2586 S.Function.HadMultipleCandidates = HadMultipleCandidates;
2587 S.Function.Function = Constructor;
2588 S.Function.FoundDecl = DeclAccessPair::make(Constructor, Access);
2922 !cast<CXXConstructorDecl>(Best->Function)->isUserProvided()) {
2930 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
3044 // Update the initializer if we've resolved an overloaded function.
3133 /// function.
3235 // If the conversion function doesn't return a reference type,
3264 FunctionDecl *Function = Best->Function;
3267 Function->setReferenced();
3270 if (isa<CXXConversionDecl>(Function))
3271 T2 = Function->getResultType();
3277 Sequence.AddUserConversionStep(Function, Best->FoundDecl,
3342 // If the initializer is the address of an overloaded function, try
3343 // to resolve the overloaded function. If all goes well, T2 is the
3344 // type of the resulting function.
3384 // there are no function rvalues in C++, rvalue refs to functions are treated
3423 // If we have an rvalue ref to function type here, the rhs must be
3462 // - is an xvalue, class prvalue, array prvalue, or function lvalue and
3505 // xvalue, class prvalue, or function lvalue of type "cv3 T3",
3545 // FIXME: Use the conversion function set stored in ICS to turn
3832 FunctionDecl *Function = Best->Function;
3833 Function->setReferenced();
3836 if (isa<CXXConstructorDecl>(Function)) {
3840 Sequence.AddUserConversionStep(Function, Best->FoundDecl,
3846 // Add the user-defined conversion step that calls the conversion function.
3847 QualType ConvType = Function->getCallResultType();
3853 // base class of the type returned by the conversion function) and
3855 Sequence.AddUserConversionStep(Function, Best->FoundDecl, DestType,
3860 Sequence.AddUserConversionStep(Function, Best->FoundDecl, ConvType,
3863 // If the conversion following the call to the conversion function
4118 // (8.3.2), shall be initialized by an object, or function, of type T or
4231 // type to the destination type or (when a conversion function is
4574 S.NoteDeletedFunction(Best->Function);
4578 CXXConstructorDecl *Constructor = cast<CXXConstructorDecl>(Best->Function);
4665 S.CheckConstructorAccess(Loc, cast<CXXConstructorDecl>(Best->Function),
4682 S.NoteDeletedFunction(Best->Function);
4716 = cast<CXXConstructorDecl>(Step.Function.Function);
4717 bool HadMultipleCandidates = Step.Function.HadMultipleCandidates;
4821 Step.Function.FoundDecl.getAccess());
4822 S.DiagnoseUseOfDecl(Step.Function.FoundDecl, Loc);
5022 // Overload resolution determined which function invoke; update the
5024 S.CheckAddressOfMemberAccess(CurInit.get(), Step->Function.FoundDecl);
5025 S.DiagnoseUseOfDecl(Step->Function.FoundDecl, Kind.getLocation());
5027 Step->Function.FoundDecl,
5028 Step->Function.Function);
5124 // or a conversion function.
5127 FunctionDecl *Fn = Step->Function.Function;
5128 DeclAccessPair FoundFn = Step->Function.FoundDecl;
5129 bool HadMultipleCandidates = Step->Function.HadMultipleCandidates;
5168 // Build a call to the conversion function.
5184 // Build the actual call to the conversion function.
5684 S.NoteDeletedFunction(Best->Function);
5821 // base within a constructor. If no viable function was
5874 // If this is a defaulted or implicitly-declared function, then
5877 if (S.isImplicitlyDeleted(Best->Function))
5879 << S.getSpecialMember(cast<CXXMethodDecl>(Best->Function))
5885 S.NoteDeletedFunction(Best->Function);
5978 CXXConstructorDecl *CtorDecl = cast<CXXConstructorDecl>(Best->Function);
6014 OS << "address of overloaded function failed";
6121 OS << "resolve address of overloaded function";
6149 OS << "user-defined conversion via " << *S->Function.Function;