Lines Matching defs:SemaRef

1319 static bool IsOverloadOrOverrideImpl(Sema &SemaRef, FunctionDecl *New,
1344 QualType OldQType = SemaRef.Context.getCanonicalType(Old->getType());
1345 QualType NewQType = SemaRef.Context.getCanonicalType(New->getType());
1389 bool SameTemplateParameterList = SemaRef.TemplateParameterListsAreEqual(
1392 bool SameReturnType = SemaRef.Context.hasSameType(
1440 if (!SemaRef.getLangOpts().CPlusPlus14 &&
1469 SemaRef.Context.getTypeDeclType(OldMethod->getParent())
1488 if (SemaRef.LangOpts.CPlusPlus23)
1497 SemaRef.Diag(NewMethod->getLocation(), diag::err_ref_qualifier_overload)
1499 SemaRef.Diag(OldMethod->getLocation(), diag::note_previous_declaration);
1512 !SemaRef.FunctionParamTypesAreEqual(
1559 !SemaRef.AreConstraintExpressionsEqual(OldDecl, OldRC, NewDecl, NewRC))
1587 NewI->getCond()->Profile(NewID, SemaRef.Context, true);
1588 OldI->getCond()->Profile(OldID, SemaRef.Context, true);
1594 if (SemaRef.getLangOpts().CUDA && ConsiderCudaAttrs) {
1598 CUDAFunctionTarget NewTarget = SemaRef.CUDA().IdentifyTarget(New),
1599 OldTarget = SemaRef.CUDA().IdentifyTarget(Old);
6532 diagnoseAmbiguousConversion(Sema &SemaRef, SourceLocation Loc, Expr *From,
6539 Converter.diagnoseAmbiguous(SemaRef, Loc, T) << From->getSourceRange();
6544 Converter.noteAmbiguous(SemaRef, Conv, ConvTy);
6550 diagnoseNoViableConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
6563 ConvTy.getAsStringInternal(TypeStr, SemaRef.getPrintingPolicy());
6565 Converter.diagnoseExplicitConv(SemaRef, Loc, T, ConvTy)
6569 SemaRef.getLocForEndOfToken(From->getEndLoc()), ")");
6570 Converter.noteExplicitConv(SemaRef, Conversion, ConvTy);
6574 if (SemaRef.isSFINAEContext())
6577 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
6578 ExprResult Result = SemaRef.BuildCXXMemberCallExpr(From, Found, Conversion,
6585 Result = SemaRef.CreateRecoveryExpr(From->getBeginLoc(), From->getEndLoc(),
6594 static bool recordConversion(Sema &SemaRef, SourceLocation Loc, Expr *&From,
6600 SemaRef.CheckMemberOperatorAccess(From->getExprLoc(), From, nullptr, Found);
6604 if (SemaRef.isSFINAEContext())
6607 Converter.diagnoseConversion(SemaRef, Loc, T, ToType)
6611 ExprResult Result = SemaRef.BuildCXXMemberCallExpr(From, Found, Conversion,
6616 From = ImplicitCastExpr::Create(SemaRef.Context, Result.get()->getType(),
6619 SemaRef.CurFPFeatureOverrides());
6624 Sema &SemaRef, SourceLocation Loc, Expr *From,
6627 Converter.diagnoseNoMatch(SemaRef, Loc, From->getType())
6630 return SemaRef.DefaultLvalueConversion(From);
6634 collectViableConversionCandidates(Sema &SemaRef, Expr *From, QualType ToType,
6644 SemaRef.AddTemplateConversionCandidate(
6650 SemaRef.AddConversionCandidate(
8583 Sema &SemaRef;
8596 BuiltinCandidateTypeSet(Sema &SemaRef)
8600 SemaRef(SemaRef),
8601 Context(SemaRef.Context) { }
8763 Ty = SemaRef.Context.getArrayDecayedType(Ty);
8807 if (!SemaRef.isCompleteType(Loc, Ty))
13765 Sema &SemaRef, SourceLocation FnLoc, const CXXScopeSpec &SS,
13769 if (!SemaRef.inTemplateInstantiation() || !SS.isEmpty())
13772 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
13776 SemaRef.LookupQualifiedName(R, DC);
13782 SemaRef.AddOverloadedCallCandidates(R, ExplicitTemplateArgs, Args,
13787 Candidates.BestViableFunction(SemaRef, FnLoc, Best);
13814 SemaRef.FindAssociatedClassesAndNamespaces(FnLoc, Args,
13819 DeclContext *Std = SemaRef.getStdNamespace();
13838 SemaRef.Diag(R.getNameLoc(), diag::err_not_found_by_two_phase_lookup)
13841 SemaRef.Diag(Best->Function->getLocation(),
13845 SemaRef.Diag(Best->Function->getLocation(),
13852 SemaRef.Diag(Best->Function->getLocation(),
13873 DiagnoseTwoPhaseOperatorLookup(Sema &SemaRef, OverloadedOperatorKind Op,
13877 SemaRef.Context.DeclarationNames.getCXXOperatorName(Op);
13878 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName);
13879 return DiagnoseTwoPhaseLookup(SemaRef, OpLoc, CXXScopeSpec(), R,
13886 Sema &SemaRef;
13890 BuildRecoveryCallExprRAII(Sema &S) : SemaRef(S), SatStack(S) {
13891 assert(SemaRef.IsBuildingRecoveryCallExpr == false);
13892 SemaRef.IsBuildingRecoveryCallExpr = true;
13895 ~BuildRecoveryCallExprRAII() { SemaRef.IsBuildingRecoveryCallExpr = false; }
13907 BuildRecoveryCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
13918 if (SemaRef.IsBuildingRecoveryCallExpr)
13920 BuildRecoveryCallExprRAII RCE(SemaRef);
13933 LookupResult R(SemaRef, ULE->getName(), ULE->getNameLoc(),
13936 if (DiagnoseTwoPhaseLookup(SemaRef, Fn->getExprLoc(), SS, R,
13944 FunctionCallFilterCCC FunctionCallValidator(SemaRef, Args.size(),
13951 if (SemaRef.DiagnoseEmptyLookup(S, SS, R, Validator, ExplicitTemplateArgs,
13954 } else if (FoundInClass && SemaRef.getLangOpts().MSVCCompat) {
13959 if (SemaRef.DiagnoseDependentMemberLookup(R))
13981 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc, R,
13984 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false,
13987 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false);
13995 return SemaRef.BuildCallExpr(/*Scope*/ nullptr, NewFn.get(), LParenLoc,
14109 static ExprResult FinishOverloadedCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
14122 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
14123 if (SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc()))
14126 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14129 return SemaRef.BuildResolvedCallExpr(
14145 SemaRef.PDiag(diag::err_member_call_without_object) << 0 << M),
14146 SemaRef, OCD_AmbiguousCandidates, Args);
14153 ExprResult Recovery = BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc,
14169 !SemaRef.checkAddressOfFunctionIsAvailable(FD, /*Complain=*/true,
14178 SemaRef.PDiag(diag::err_ovl_no_viable_function_in_call)
14180 SemaRef, OCD_AllCandidates, Args);
14187 SemaRef.PDiag(diag::err_ovl_ambiguous_call)
14189 SemaRef, OCD_AmbiguousCandidates, Args);
14194 SemaRef.DiagnoseUseOfDeletedFunction(Fn->getBeginLoc(),
14201 SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
14204 return SemaRef.BuildResolvedCallExpr(
14214 return SemaRef.CreateRecoveryExpr(Fn->getBeginLoc(), RParenLoc, SubExprs,