Lines Matching refs:SemaRef
5273 diagnoseAmbiguousConversion(Sema &SemaRef, SourceLocation Loc, Expr *From,
5280 Converter.diagnoseAmbiguous(SemaRef, Loc, T) << From->getSourceRange();
5285 Converter.noteAmbiguous(SemaRef, Conv, ConvTy);
5291 diagnoseNoViableConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
5304 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy());
5306 Converter.diagnoseExplicitConv(SemaRef, Loc, T, ConvTy)
5310 SemaRef.getLocForEndOfToken(From->getLocEnd()), ")");
5311 Converter.noteExplicitConv(SemaRef, Conversion, ConvTy);
5315 if (SemaRef.isSFINAEContext())
5318 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
5319 ExprResult Result = SemaRef.BuildCXXMemberCallExpr(From, Found, Conversion,
5324 From = ImplicitCastExpr::Create(SemaRef.Context, Result.get()->getType(),
5331 static bool recordConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
5337 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
5341 if (SemaRef.isSFINAEContext())
5344 Converter.diagnoseConversion(SemaRef, Loc, T, ToType)
5348 ExprResult Result = SemaRef.BuildCXXMemberCallExpr(From, Found, Conversion,
5353 From = ImplicitCastExpr::Create(SemaRef.Context, Result.get()->getType(),
5360 Sema &SemaRef, SourceLocation Loc, Expr *From,
5363 Converter.diagnoseNoMatch(SemaRef, Loc, From->getType())
5366 return SemaRef.DefaultLvalueConversion(From);
5370 collectViableConversionCandidates(Sema &SemaRef, Expr *From, QualType ToType,
5388 SemaRef.AddTemplateConversionCandidate(
5392 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From,
6810 Sema &SemaRef;
6823 BuiltinCandidateTypeSet(Sema &SemaRef)
6827 SemaRef(SemaRef),
6828 Context(SemaRef.Context) { }
6999 Ty = SemaRef.Context.getArrayDecayedType(Ty);
7035 if (!SemaRef.isCompleteType(Loc, Ty))
10837 DiagnoseTwoPhaseLookup(Sema &SemaRef, SourceLocation FnLoc,
10843 if (SemaRef
10846 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
10850 SemaRef.LookupQualifiedName(R, DC);
10866 AddOverloadedCallCandidate(SemaRef, I.getPair(),
10871 if (Candidates.BestViableFunction(SemaRef, FnLoc, Best) != OR_Success) {
10882 SemaRef.FindAssociatedClassesAndNamespaces(FnLoc, Args,
10887 DeclContext *Std = SemaRef.getStdNamespace();
10906 SemaRef.Diag(R.getNameLoc(), diag::err_not_found_by_two_phase_lookup)
10909 SemaRef.Diag(Best->Function->getLocation(),
10913 SemaRef.Diag(Best->Function->getLocation(),
10920 SemaRef.Diag(Best->Function->getLocation(),
10941 DiagnoseTwoPhaseOperatorLookup(Sema &SemaRef, OverloadedOperatorKind Op,
10945 SemaRef.Context.DeclarationNames.getCXXOperatorName(Op);
10946 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName);
10947 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R,
10954 Sema &SemaRef;
10956 BuildRecoveryCallExprRAII(Sema &S) : SemaRef(S) {
10957 assert(SemaRef.IsBuildingRecoveryCallExpr == false);
10958 SemaRef.IsBuildingRecoveryCallExpr = true;
10962 SemaRef.IsBuildingRecoveryCallExpr = false;
10969 MakeValidator(Sema &SemaRef, MemberExpr *ME, size_t NumArgs,
10973 return llvm::make_unique<FunctionCallFilterCCC>(SemaRef, NumArgs,
10981 BuildRecoveryCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
10993 if (SemaRef.IsBuildingRecoveryCallExpr)
10995 BuildRecoveryCallExprRAII RCE(SemaRef);
11008 LookupResult R(SemaRef, ULE->getName(), ULE->getNameLoc(),
11011 if (!DiagnoseTwoPhaseLookup(SemaRef, Fn->getExprLoc(), SS, R,
11015 (!DoDiagnoseEmptyLookup || SemaRef.DiagnoseEmptyLookup(
11017 MakeValidator(SemaRef, dyn_cast<MemberExpr>(Fn), Args.size(),
11028 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc, R,
11031 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false,
11034 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false);
11042 return SemaRef.ActOnCallExpr(/*Scope*/ nullptr, NewFn.get(), LParenLoc,
11116 static ExprResult FinishOverloadedCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
11127 return BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc, Args,
11134 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
11135 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc()))
11137 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
11138 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc,
11145 ExprResult Recovery = BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc,
11161 !SemaRef.checkAddressOfFunctionIsAvailable(FD, /*Complain=*/true,
11167 SemaRef.Diag(Fn->getLocStart(), diag::err_ovl_no_viable_function_in_call)
11169 CandidateSet->NoteCandidates(SemaRef, OCD_AllCandidates, Args);
11174 SemaRef.Diag(Fn->getLocStart(), diag::err_ovl_ambiguous_call)
11176 CandidateSet->NoteCandidates(SemaRef, OCD_ViableCandidates, Args);
11180 SemaRef.Diag(Fn->getLocStart(), diag::err_ovl_deleted_call)
11183 << SemaRef.getDeletedOrUnavailableSuffix((*Best)->Function)
11185 CandidateSet->NoteCandidates(SemaRef, OCD_AllCandidates, Args);
11190 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
11191 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, RParenLoc,