Home | History | Annotate | Download | only in Sema

Lines Matching defs:SemaRef

6132   Sema &SemaRef;
6145 BuiltinCandidateTypeSet(Sema &SemaRef)
6149 SemaRef(SemaRef),
6150 Context(SemaRef.Context) { }
6319 Ty = SemaRef.Context.getArrayDecayedType(Ty);
6355 if (SemaRef.RequireCompleteType(Loc, Ty, 0))
9583 DiagnoseTwoPhaseLookup(Sema &SemaRef, SourceLocation FnLoc,
9587 if (SemaRef.ActiveTemplateInstantiations.empty() || !SS.isEmpty())
9590 for (DeclContext *DC = SemaRef.CurContext; DC; DC = DC->getParent()) {
9594 SemaRef.LookupQualifiedName(R, DC);
9608 AddOverloadedCallCandidate(SemaRef, I.getPair(),
9613 if (Candidates.BestViableFunction(SemaRef, FnLoc, Best) != OR_Success) {
9624 SemaRef.FindAssociatedClassesAndNamespaces(FnLoc, Args,
9628 DeclContext *Std = SemaRef.getStdNamespace();
9646 SemaRef.Diag(R.getNameLoc(), diag::err_not_found_by_two_phase_lookup)
9649 SemaRef.Diag(Best->Function->getLocation(),
9653 SemaRef.Diag(Best->Function->getLocation(),
9660 SemaRef.Diag(Best->Function->getLocation(),
9681 DiagnoseTwoPhaseOperatorLookup(Sema &SemaRef, OverloadedOperatorKind Op,
9685 SemaRef.Context.DeclarationNames.getCXXOperatorName(Op);
9686 LookupResult R(SemaRef, OpName, OpLoc, Sema::LookupOperatorName);
9687 SemaRef, OpLoc, CXXScopeSpec(), R,
9697 RecoveryCallCCC(Sema &SemaRef, unsigned NumArgs, bool HasExplicitTemplateArgs)
9699 WantTypeSpecifiers = SemaRef.getLangOpts().CPlusPlus;
9754 Sema &SemaRef;
9756 BuildRecoveryCallExprRAII(Sema &S) : SemaRef(S) {
9757 assert(SemaRef.IsBuildingRecoveryCallExpr == false);
9758 SemaRef.IsBuildingRecoveryCallExpr = true;
9762 SemaRef.IsBuildingRecoveryCallExpr = false;
9772 BuildRecoveryCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
9784 if (SemaRef.IsBuildingRecoveryCallExpr)
9786 BuildRecoveryCallExprRAII RCE(SemaRef);
9799 LookupResult R(SemaRef, ULE->getName(), ULE->getNameLoc(),
9801 RecoveryCallCCC Validator(SemaRef, Args.size(), ExplicitTemplateArgs != 0);
9806 if (!DiagnoseTwoPhaseLookup(SemaRef, Fn->getExprLoc(), SS, R,
9809 SemaRef.DiagnoseEmptyLookup(S, SS, R, *CCC,
9819 NewFn = SemaRef.BuildPossibleImplicitMemberExpr(SS, TemplateKWLoc,
9822 NewFn = SemaRef.BuildTemplateIdExpr(SS, TemplateKWLoc, R, false,
9825 NewFn = SemaRef.BuildDeclarationNameExpr(SS, R, false);
9833 return SemaRef.ActOnCallExpr(/*Scope*/ 0, NewFn.take(), LParenLoc,
9904 static ExprResult FinishOverloadedCallExpr(Sema &SemaRef, Scope *S, Expr *Fn,
9915 return BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc,
9923 SemaRef.CheckUnresolvedLookupAccess(ULE, (*Best)->FoundDecl);
9924 SemaRef.DiagnoseUseOfDecl(FDecl, ULE->getNameLoc());
9925 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
9926 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, NumArgs,
9933 ExprResult Recovery = BuildRecoveryCallExpr(SemaRef, S, Fn, ULE, LParenLoc,
9941 SemaRef.Diag(Fn->getLocStart(),
9944 CandidateSet->NoteCandidates(SemaRef, OCD_AllCandidates,
9950 SemaRef.Diag(Fn->getLocStart(), diag::err_ovl_ambiguous_call)
9952 CandidateSet->NoteCandidates(SemaRef, OCD_ViableCandidates,
9957 SemaRef.Diag(Fn->getLocStart(), diag::err_ovl_deleted_call)
9960 << SemaRef.getDeletedOrUnavailableSuffix((*Best)->Function)
9962 CandidateSet->NoteCandidates(SemaRef, OCD_AllCandidates,
9968 Fn = SemaRef.FixOverloadedFunctionReference(Fn, (*Best)->FoundDecl, FDecl);
9969 return SemaRef.BuildResolvedCallExpr(Fn, FDecl, LParenLoc, Args, NumArgs,