Lines Matching defs:Result
289 /// \param Converted The result of applying this standard conversion sequence.
321 llvm::APFloat Result(Ctx.getFloatTypeSemantics(ToType));
322 Result.convertFromAPInt(IntConstantValue, IntConstantValue.isSigned(),
327 Result.convertToInteger(ConvertedValue,
418 // If the result is different, this was a narrowing conversion.
552 OverloadCandidate::DeductionFailureInfo Result;
553 Result.Result = static_cast<unsigned>(TDK);
554 Result.HasDiagnostic = false;
555 Result.Data = 0;
565 Result.Data = Info.Param.getOpaqueValue();
575 Result.Data = Saved;
580 Result.Data = Info.take();
582 PartialDiagnosticAt *Diag = new (Result.Diagnostic) PartialDiagnosticAt(
585 Result.HasDiagnostic = true;
594 return Result;
598 switch (static_cast<Sema::TemplateDeductionResult>(Result)) {
638 switch (static_cast<Sema::TemplateDeductionResult>(Result)) {
665 switch (static_cast<Sema::TemplateDeductionResult>(Result)) {
689 switch (static_cast<Sema::TemplateDeductionResult>(Result)) {
714 switch (static_cast<Sema::TemplateDeductionResult>(Result)) {
796 ExprResult result = S.CheckPlaceholderExpr(E);
797 if (result.isInvalid())
800 E = result.take();
1467 // type "pointer to T." The result is a pointer to the
1903 /// should result in a warning.
2011 // necessitates this conversion is ill-formed. The result of the
2179 // differences in the argument and result types are in Objective-C
2327 // differences in the argument and result types are in Objective-C
2975 OverloadingResult Result = IsInitializerListConstructorConversion(
2977 if (Result != OR_No_Viable_Function)
2978 return Result;
3130 // result of the user-defined conversion to the target type
3243 ImplicitConversionSequence::CompareKind Result =
3250 Result = CompareStandardConversionSequences(S,
3261 Result
3265 Result = compareConversionFunctions(S,
3273 if (Result == ImplicitConversionSequence::Indistinguishable &&
3285 return Result;
3304 ImplicitConversionSequence::CompareKind Result
3316 Result = ImplicitConversionSequence::Better;
3318 Result = ImplicitConversionSequence::Worse;
3325 return Context.hasSameType(SCS1.getToType(2), SCS2.getToType(2))? Result
3330 return Result == ImplicitConversionSequence::Worse
3335 return Result == ImplicitConversionSequence::Better
3582 ImplicitConversionSequence::CompareKind Result
3590 Result = SCS1.QualificationIncludesObjCLifetime
3610 if (Result == ImplicitConversionSequence::Worse)
3615 Result = ImplicitConversionSequence::Better;
3618 if (Result == ImplicitConversionSequence::Better)
3623 Result = ImplicitConversionSequence::Worse;
3636 switch (Result) {
3639 Result = ImplicitConversionSequence::Indistinguishable;
3647 Result = ImplicitConversionSequence::Indistinguishable;
3651 return Result;
4017 // [...] If the parameter binds directly to the result of
4218 // expression in the first case and to the result of the conversion
4344 ImplicitConversionSequence Result;
4345 Result.setBad(BadConversionSequence::no_conversion, From, ToType);
4346 Result.setListInitializationSequence();
4351 return Result;
4373 Result = ICS;
4377 if (Result.isBad() ||
4378 CompareImplicitConversionSequences(S, ICS, Result) ==
4380 Result = ICS;
4386 Result.setStandard();
4387 Result.Standard.setAsIdentityConversion();
4388 Result.Standard.setFromType(ToType);
4389 Result.Standard.setAllToTypes(ToType);
4392 Result.setListInitializationSequence();
4393 Result.setStdInitializerListElement(toStdInitializerList);
4394 return Result;
4405 Result = TryUserDefinedConversion(S, From, ToType, SuppressUserConversions,
4409 Result.setListInitializationSequence();
4410 return Result;
4425 Result.setUserDefined();
4426 Result.UserDefined.Before.setAsIdentityConversion();
4428 Result.UserDefined.Before.setFromType(QualType());
4429 Result.UserDefined.Before.setAllToTypes(QualType());
4431 Result.UserDefined.After.setAsIdentityConversion();
4432 Result.UserDefined.After.setFromType(ToType);
4433 Result.UserDefined.After.setAllToTypes(ToType);
4434 Result.UserDefined.ConversionFunction = 0;
4436 return Result;
4482 Result = TryListConversion(S, From, T1, SuppressUserConversions,
4485 if (Result.isFailure())
4486 return Result;
4487 assert(!Result.isEllipsis() &&
4488 "Sub-initialization cannot result in ellipsis conversion.");
4493 StandardConversionSequence &SCS = Result.isStandard() ? Result.Standard :
4494 Result.UserDefined.After;
4502 Result.setBad(BadConversionSequence::lvalue_ref_to_rvalue,
4504 return Result;
4515 Result = TryCopyInitialization(S, From->getInit(0), ToType,
4522 Result.setStandard();
4523 Result.Standard.setAsIdentityConversion();
4524 Result.Standard.setFromType(ToType);
4525 Result.Standard.setAllToTypes(ToType);
4527 Result.setListInitializationSequence();
4528 return Result;
4533 return Result;
4894 ExprResult Result = PerformImplicitConversion(From, T, ICS, AA_Converting);
4895 if (Result.isInvalid())
4896 return Result;
4901 switch (SCS->getNarrowingKind(Context, Result.get(), PreNarrowingValue,
4930 if (!Result.get()->EvaluateAsRValue(Eval, Context)) {
4933 Result = ExprError();
4939 return Result;
4953 return Result;
4958 /// the result type of the conversion sequence.
5051 ExprResult result = CheckPlaceholderExpr(From);
5052 if (result.isInvalid()) return result;
5053 From = result.take();
5140 ExprResult Result = BuildCXXMemberCallExpr(From, Found, Conversion,
5142 if (Result.isInvalid())
5145 From = ImplicitCastExpr::Create(Context, Result.get()->getType(),
5147 Result.get(), 0,
5148 Result.get()->getValueKind());
5171 ExprResult Result
5173 if (Result.isInvalid())
5176 From = ImplicitCastExpr::Create(Context, Result.get()->getType(),
5178 Result.get(), 0,
5179 Result.get()->getValueKind());
5536 if (TemplateDeductionResult Result
5547 Candidate.DeductionFailure = MakeDeductionFailureInfo(Context, Result,
5586 if (TemplateDeductionResult Result
5597 Candidate.DeductionFailure = MakeDeductionFailureInfo(Context, Result,
5678 // To determine what the conversion from the result of calling the
5770 if (TemplateDeductionResult Result
5781 Candidate.DeductionFailure = MakeDeductionFailureInfo(Context, Result,
5922 // result of the qualified lookup of T1::operator@
5946 /// operator. ResultTy and ParamTys are the result and parameter types
6933 // where LR is the result of the usual arithmetic conversions
6943 // where LR is the result of the usual arithmetic conversions
6956 QualType Result =
6959 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet);
6974 QualType Result = S.Context.BoolTy;
6977 Result = *Vec1;
6979 Result = *Vec2;
6982 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet);
6999 // where LR is the result of the usual arithmetic conversions
7011 QualType Result = (Op == OO_LessLess || Op == OO_GreaterGreater)
7014 S.AddBuiltinCandidate(Result, LandR, Args, 2, CandidateSet);
7822 /// \returns The result of overload resolution.
8225 Cand->DeductionFailure.Result == Sema::TDK_TooFewArguments));
8235 Cand->DeductionFailure.Result == Sema::TDK_TooManyArguments));
8267 switch (Cand->DeductionFailure.Result) {
8272 assert(ParamD && "no parameter found for incomplete deduction result");
8280 assert(ParamD && "no parameter found for bad qualifiers deduction result");
8305 assert(ParamD && "no parameter found for inconsistent deduction result");
8560 switch ((Sema::TemplateDeductionResult)DFI.Result) {
8586 llvm_unreachable("Unhandled deduction result");
8673 if (L->DeductionFailure.Result != R->DeductionFailure.Result)
8983 if (Sema::TemplateDeductionResult Result
8989 (void)Result;
9084 UnresolvedSetIterator Result =
9094 if (Result != MatchesCopy.end()) {
9096 Matches[0].first = Matches[Result - MatchesCopy.begin()].first;
9097 Matches[0].second = cast<FunctionDecl>(*Result);
9261 if (TemplateDeductionResult Result
9265 (void)Result;
9706 ExprResult *Result) {
9729 *Result = ExprError();
9753 *Result = Owned(CE);
9855 ExprResult result;
9858 &CandidateSet, &result))
9859 return result;
10000 // Determine the result type.
10242 // Determine the result type.
10294 ExprResult Result = ExprError();
10310 Result = CreateBuiltinBinOp(OpLoc, Opc, Args[0], Args[1]);
10312 assert(Result.isInvalid() &&
10314 if (Result.isInvalid())
10317 return Result;
10446 // Determine the result type