Lines Matching refs:SemaRef

707 getUuidAttrOfType(Sema &SemaRef, QualType QT,  in getUuidAttrOfType()  argument
731 getUuidAttrOfType(SemaRef, TA.getAsType(), UuidAttrs); in getUuidAttrOfType()
733 getUuidAttrOfType(SemaRef, TA.getAsDecl()->getType(), UuidAttrs); in getUuidAttrOfType()
3517 DiagnoseMismatchedNewDelete(Sema &SemaRef, SourceLocation DeleteLoc, in DiagnoseMismatchedNewDelete() argument
3519 SourceLocation EndOfDelete = SemaRef.getLocForEndOfToken(DeleteLoc); in DiagnoseMismatchedNewDelete()
3525 DeleteLoc, tok::l_square, SemaRef.getSourceManager(), in DiagnoseMismatchedNewDelete()
3526 SemaRef.getLangOpts(), true); in DiagnoseMismatchedNewDelete()
3530 SemaRef.Diag(DeleteLoc, diag::warn_mismatched_delete_new) in DiagnoseMismatchedNewDelete()
3534 SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here) in DiagnoseMismatchedNewDelete()
7693 canRecoverDotPseudoDestructorCallsOnPointerObjects(Sema &SemaRef, in canRecoverDotPseudoDestructorCallsOnPointerObjects() argument
7698 if (CXXDestructorDecl *D = SemaRef.LookupDestructor(RD)) in canRecoverDotPseudoDestructorCallsOnPointerObjects()
7699 return SemaRef.CanUseDecl(D, /*TreatUnavailableAsInvalid=*/false); in canRecoverDotPseudoDestructorCallsOnPointerObjects()
8348 static ExprResult attemptRecovery(Sema &SemaRef, in attemptRecovery() argument
8351 LookupResult R(SemaRef, Consumer.getLookupResult().getLookupNameInfo(), in attemptRecovery()
8358 NewSS.MakeTrivial(SemaRef.Context, NNS, TC.getCorrectionRange()); in attemptRecovery()
8393 return SemaRef.BuildPossibleImplicitMemberExpr( in attemptRecovery()
8397 return SemaRef.LookupInObjCMethod(R, Consumer.getScope(), in attemptRecovery()
8402 return SemaRef.BuildDeclarationNameExpr(NewSS, R, /*NeedsADL*/ false, in attemptRecovery()
8441 auto &State = SemaRef.getTypoExprState(TE); in EmitAllDiagnostics()
8458 SemaRef.clearDelayedTypo(TE); in EmitAllDiagnostics()
8478 auto &State = SemaRef.getTypoExprState(TE); in CheckAndAdvanceTypoExprCorrectionStreams()
8506 Sema::SFINAETrap Trap(SemaRef); in TryTransform()
8543 auto &SemaTypoExprs = SemaRef.TypoExprs; in CheckForRecursiveTypos()
8546 SemaRef.clearDelayedTypo(TE); in CheckForRecursiveTypos()
8574 auto SavedTypoExprs = std::move(SemaRef.TypoExprs); in RecursiveTransformLoop()
8575 SemaRef.TypoExprs.clear(); in RecursiveTransformLoop()
8608 SemaRef.getTypoExprState(TE).Consumer->saveCurrentPosition(); in RecursiveTransformLoop()
8610 TypoCorrection TC = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection(); in RecursiveTransformLoop()
8620 SemaRef.getTypoExprState(TE).Consumer->resetCorrectionStream(); in RecursiveTransformLoop()
8626 } while ((Next = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection()) && in RecursiveTransformLoop()
8633 SemaRef.getTypoExprState(TE).Consumer->restoreSavedPosition(); in RecursiveTransformLoop()
8643 auto &SemaTypoExprs = SemaRef.TypoExprs; in RecursiveTransformLoop()
8651 SemaRef.clearDelayedTypo(TE); in RecursiveTransformLoop()
8654 SemaRef.TypoExprs = std::move(SavedTypoExprs); in RecursiveTransformLoop()
8660 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter) in TransformTypos() argument
8661 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {} in TransformTypos()
8706 auto &State = SemaRef.getTypoExprState(E); in TransformTypoExpr()
8717 State.RecoveryHandler(SemaRef, E, TC) : in TransformTypoExpr()
8718 attemptRecovery(SemaRef, *State.Consumer, TC); in TransformTypoExpr()
8757 TyposReplace(Sema &SemaRef) : TreeTransform(SemaRef) {} in CorrectDelayedTyposInExpr()
8759 return this->SemaRef.CreateRecoveryExpr(E->getBeginLoc(), in CorrectDelayedTyposInExpr()