Lines Matching defs:SemaRef

1285 static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New,
1310 QualType OldQType = SemaRef.Context.getCanonicalType(Old->getType());
1311 QualType NewQType = SemaRef.Context.getCanonicalType(New->getType());
1355 bool SameTemplateParameterList = SemaRef.TemplateParameterListsAreEqual(
1358 bool SameReturnType = SemaRef.Context.hasSameType(
1402 if (!SemaRef.getLangOpts().CPlusPlus14 &&
1422 SemaRef.Context.getTypeDeclType(OldMethod->getParent())
1441 if (SemaRef.LangOpts.CPlusPlus23)
1450 SemaRef.Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload)
1452 SemaRef.Diag(OldMethod->getLocation(), diag::note_previous_declaration);
1465 !SemaRef.FunctionParamTypesAreEqual(
1512 !SemaRef.AreConstraintExpressionsEqual(OldDecl, OldRC, NewDecl, NewRC))
1540 NewI->getCond()->Profile(NewID, SemaRef.Context, true);
1541 OldI->getCond()->Profile(OldID, SemaRef.Context, true);
1546 if (SemaRef.getLangOpts().CUDA && ConsiderCudaAttrs) {
1550 CUDAFunctionTarget NewTarget = SemaRef.CUDA().IdentifyTarget(New),
1551 OldTarget = SemaRef.CUDA().IdentifyTarget(Old);
6396 diagnoseAmbiguousConversion(Sema &SemaRef, SourceLocation Loc, Expr *From,
6403 Converter.diagnoseAmbiguous(SemaRef, Loc, T) << From->getSourceRange();
6408 Converter.noteAmbiguous(SemaRef, Conv, ConvTy);
6414 diagnoseNoViableConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
6427 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy());
6429 Converter.diagnoseExplicitConv(SemaRef, Loc, T, ConvTy)
6433 SemaRef.getLocForEndOfToken(From->getEndLoc()), ")");
6434 Converter.noteExplicitConv(SemaRef, Conversion, ConvTy);
6438 if (SemaRef.isSFINAEContext())
6441 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
6442 ExprResult Result = SemaRef.BuildCXXMemberCallExpr(From, Found, Conversion,
6449 Result = SemaRef.CreateRecoveryExpr(From->getBeginLoc(), From->getEndLoc(),
6458 static bool recordConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
6464 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
6468 if (SemaRef.isSFINAEContext())
6471 Converter.diagnoseConversion(SemaRef, Loc, T, ToType)
6475 ExprResult Result = SemaRef.BuildCXXMemberCallExpr(From, Found, Conversion,
6480 From = ImplicitCastExpr::Create(SemaRef.Context, Result.get()->getType(),
6483 SemaRef.CurFPFeatureOverrides());
6488 Sema &SemaRef, SourceLocation Loc, Expr *From,
6491 Converter.diagnoseNoMatch(SemaRef, Loc, From->getType())
6494 return SemaRef.DefaultLvalueConversion(From);
6498 collectViableConversionCandidates(Sema &SemaRef, Expr *From, QualType ToType,
6516 SemaRef.AddTemplateConversionCandidate(
6520 SemaRef.AddConversionCandidate(Conv, FoundDecl, ActingContext, From,
8402 Sema &SemaRef;
8415 BuiltinCandidateTypeSet(Sema &SemaRef)
8419 SemaRef(SemaRef),
8420 Context(SemaRef.Context) { }
8582 Ty = SemaRef.Context.getArrayDecayedType(Ty);
8626 if (!SemaRef.isCompleteType(Loc, Ty))
13571 Sema &SemaRef, SourceLocation FnLoc, const CXXScopeSpec &SS,
13575 if (!SemaRef.inTemplateInstantiation() || !SS.isEmpty())
13578 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
13582 SemaRef.LookupQualifiedName(R, DC);
13588 SemaRef.AddOverloadedCallCandidates(R, ExplicitTemplateArgs, Args,
13593 Candidates.BestViableFunction(SemaRef, FnLoc, Best);
13620 SemaRef.FindAssociatedClassesAndNamespaces(FnLoc, Args,
13625 DeclContext *Std = SemaRef.getStdNamespace();
13644 SemaRef.Diag(R.getNameLoc(), diag::err_not_found_by_two_phase_lookup)
13647 SemaRef.Diag(Best->Function->getLocation(),
13651 SemaRef.Diag(Best->Function->getLocation(),
13658 SemaRef.Diag(Best->Function->getLocation(),
13679 DiagnoseTwoPhaseOperatorLookup(Sema &SemaRef, OverloadedOperatorKind Op,
13683 SemaRef.Context.DeclarationNames.getCXXOperatorName(Op);
13684 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName);
13685 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R,
13692 Sema &SemaRef;
13696 BuildRecoveryCallExprRAII(Sema &S) : SemaRef(S), SatStack(S) {
13697 assert(SemaRef.IsBuildingRecoveryCallExpr == false);
13698 SemaRef.IsBuildingRecoveryCallExpr = true;
13701 ~BuildRecoveryCallExprRAII() { SemaRef.IsBuildingRecoveryCallExpr = false; }
13713 BuildRecoveryCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
13724 if (SemaRef.IsBuildingRecoveryCallExpr)
13726 BuildRecoveryCallExprRAII RCE(SemaRef);
13739 LookupResult R(SemaRef, ULE->getName(), ULE->getNameLoc(),
13742 if (DiagnoseTwoPhaseLookup(SemaRef, Fn->getExprLoc(), SS, R,
13750 FunctionCallFilterCCC FunctionCallValidator(SemaRef, Args.size(),
13757 if (SemaRef.DiagnoseEmptyLookup(S, SS, R, Validator, ExplicitTemplateArgs,
13760 } else if (FoundInClass && SemaRef.getLangOpts().MSVCCompat) {
13765 if (SemaRef.DiagnoseDependentMemberLookup(R))
13787 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc, R,
13790 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false,
13793 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false);
13801 return SemaRef.BuildCallExpr(/*Scope*/ nullptr, NewFn.get(), LParenLoc,
13915 static ExprResult FinishOverloadedCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
13928 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
13929 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc()))
13932 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
13935 return SemaRef.BuildResolvedCallExpr(
13950 SemaRef.PDiag(diag::err_member_call_without_object) << 0 << M),
13951 SemaRef, OCD_AmbiguousCandidates, Args);
13958 ExprResult Recovery = BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc,
13974 !SemaRef.checkAddressOfFunctionIsAvailable(FD, /*Complain=*/true,
13983 SemaRef.PDiag(diag::err_ovl_no_viable_function_in_call)
13985 SemaRef, OCD_AllCandidates, Args);
13992 SemaRef.PDiag(diag::err_ovl_ambiguous_call)
13994 SemaRef, OCD_AmbiguousCandidates, Args);
13999 SemaRef.DiagnoseUseOfDeletedFunction(Fn->getBeginLoc(),
14006 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14009 return SemaRef.BuildResolvedCallExpr(
14018 return SemaRef.CreateRecoveryExpr(Fn->getBeginLoc(), RParenLoc, SubExprs,