Lines Matching defs:SemaRef

593 getUuidAttrOfType(Sema &SemaRef, QualType QT,
617 getUuidAttrOfType(SemaRef, TA.getAsType(), UuidAttrs);
619 getUuidAttrOfType(SemaRef, TA.getAsDecl()->getType(), UuidAttrs);
3159 DiagnoseMismatchedNewDelete(Sema &SemaRef, SourceLocation DeleteLoc,
3161 SourceLocation EndOfDelete = SemaRef.getLocForEndOfToken(DeleteLoc);
3167 DeleteLoc, tok::l_square, SemaRef.getSourceManager(),
3168 SemaRef.getLangOpts(), true);
3172 SemaRef.Diag(DeleteLoc, diag::warn_mismatched_delete_new)
3176 SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here)
7119 canRecoverDotPseudoDestructorCallsOnPointerObjects(Sema &SemaRef,
7124 if (CXXDestructorDecl *D = SemaRef.LookupDestructor(RD))
7125 return SemaRef.CanUseDecl(D, /*TreatUnavailableAsInvalid=*/false);
7778 static ExprResult attemptRecovery(Sema &SemaRef,
7781 LookupResult R(SemaRef, Consumer.getLookupResult().getLookupNameInfo(),
7788 NewSS.MakeTrivial(SemaRef.Context, NNS, TC.getCorrectionRange());
7823 return SemaRef.BuildPossibleImplicitMemberExpr(
7827 return SemaRef.LookupInObjCMethod(R, Consumer.getScope(),
7832 return SemaRef.BuildDeclarationNameExpr(NewSS, R, /*NeedsADL*/ false,
7871 auto &State = SemaRef.getTypoExprState(TE);
7888 SemaRef.clearDelayedTypo(TE);
7903 auto &State = SemaRef.getTypoExprState(TE);
7929 Sema::SFINAETrap Trap(SemaRef);
7966 auto &SemaTypoExprs = SemaRef.TypoExprs;
7969 SemaRef.clearDelayedTypo(TE);
7997 auto SavedTypoExprs = std::move(SemaRef.TypoExprs);
7998 SemaRef.TypoExprs.clear();
8031 SemaRef.getTypoExprState(TE).Consumer->saveCurrentPosition();
8033 TypoCorrection TC = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection();
8043 SemaRef.getTypoExprState(TE).Consumer->resetCorrectionStream();
8049 } while ((Next = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection()) &&
8056 SemaRef.getTypoExprState(TE).Consumer->restoreSavedPosition();
8065 auto &SemaTypoExprs = SemaRef.TypoExprs;
8073 SemaRef.clearDelayedTypo(TE);
8076 SemaRef.TypoExprs = std::move(SavedTypoExprs);
8082 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter)
8083 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {}
8128 auto &State = SemaRef.getTypoExprState(E);
8139 State.RecoveryHandler(SemaRef, E, TC) :
8140 attemptRecovery(SemaRef, *State.Consumer, TC);