Lines Matching refs:SemaRef

704 getUuidAttrOfType(Sema &SemaRef, QualType QT,  in getUuidAttrOfType()  argument
728 getUuidAttrOfType(SemaRef, TA.getAsType(), UuidAttrs); in getUuidAttrOfType()
730 getUuidAttrOfType(SemaRef, TA.getAsDecl()->getType(), UuidAttrs); in getUuidAttrOfType()
3447 DiagnoseMismatchedNewDelete(Sema &SemaRef, SourceLocation DeleteLoc, in DiagnoseMismatchedNewDelete() argument
3449 SourceLocation EndOfDelete = SemaRef.getLocForEndOfToken(DeleteLoc); in DiagnoseMismatchedNewDelete()
3455 DeleteLoc, tok::l_square, SemaRef.getSourceManager(), in DiagnoseMismatchedNewDelete()
3456 SemaRef.getLangOpts(), true); in DiagnoseMismatchedNewDelete()
3460 SemaRef.Diag(DeleteLoc, diag::warn_mismatched_delete_new) in DiagnoseMismatchedNewDelete()
3464 SemaRef.Diag(NE->getExprLoc(), diag::note_allocated_here) in DiagnoseMismatchedNewDelete()
7673 canRecoverDotPseudoDestructorCallsOnPointerObjects(Sema &SemaRef, in canRecoverDotPseudoDestructorCallsOnPointerObjects() argument
7678 if (CXXDestructorDecl *D = SemaRef.LookupDestructor(RD)) in canRecoverDotPseudoDestructorCallsOnPointerObjects()
7679 return SemaRef.CanUseDecl(D, /*TreatUnavailableAsInvalid=*/false); in canRecoverDotPseudoDestructorCallsOnPointerObjects()
8324 static ExprResult attemptRecovery(Sema &SemaRef, in attemptRecovery() argument
8327 LookupResult R(SemaRef, Consumer.getLookupResult().getLookupNameInfo(), in attemptRecovery()
8334 NewSS.MakeTrivial(SemaRef.Context, NNS, TC.getCorrectionRange()); in attemptRecovery()
8369 return SemaRef.BuildPossibleImplicitMemberExpr( in attemptRecovery()
8373 return SemaRef.LookupInObjCMethod(R, Consumer.getScope(), in attemptRecovery()
8378 return SemaRef.BuildDeclarationNameExpr(NewSS, R, /*NeedsADL*/ false, in attemptRecovery()
8417 auto &State = SemaRef.getTypoExprState(TE); in EmitAllDiagnostics()
8434 SemaRef.clearDelayedTypo(TE); in EmitAllDiagnostics()
8454 auto &State = SemaRef.getTypoExprState(TE); in CheckAndAdvanceTypoExprCorrectionStreams()
8482 Sema::SFINAETrap Trap(SemaRef); in TryTransform()
8519 auto &SemaTypoExprs = SemaRef.TypoExprs; in CheckForRecursiveTypos()
8522 SemaRef.clearDelayedTypo(TE); in CheckForRecursiveTypos()
8550 auto SavedTypoExprs = std::move(SemaRef.TypoExprs); in RecursiveTransformLoop()
8551 SemaRef.TypoExprs.clear(); in RecursiveTransformLoop()
8584 SemaRef.getTypoExprState(TE).Consumer->saveCurrentPosition(); in RecursiveTransformLoop()
8586 TypoCorrection TC = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection(); in RecursiveTransformLoop()
8596 SemaRef.getTypoExprState(TE).Consumer->resetCorrectionStream(); in RecursiveTransformLoop()
8602 } while ((Next = SemaRef.getTypoExprState(TE).Consumer->peekNextCorrection()) && in RecursiveTransformLoop()
8609 SemaRef.getTypoExprState(TE).Consumer->restoreSavedPosition(); in RecursiveTransformLoop()
8619 auto &SemaTypoExprs = SemaRef.TypoExprs; in RecursiveTransformLoop()
8627 SemaRef.clearDelayedTypo(TE); in RecursiveTransformLoop()
8630 SemaRef.TypoExprs = std::move(SavedTypoExprs); in RecursiveTransformLoop()
8636 TransformTypos(Sema &SemaRef, VarDecl *InitDecl, llvm::function_ref<ExprResult(Expr *)> Filter) in TransformTypos() argument
8637 : BaseTransform(SemaRef), InitDecl(InitDecl), ExprFilter(Filter) {} in TransformTypos()
8682 auto &State = SemaRef.getTypoExprState(E); in TransformTypoExpr()
8693 State.RecoveryHandler(SemaRef, E, TC) : in TransformTypoExpr()
8694 attemptRecovery(SemaRef, *State.Consumer, TC); in TransformTypoExpr()
8733 TyposReplace(Sema &SemaRef) : TreeTransform(SemaRef) {} in CorrectDelayedTyposInExpr()
8735 return this->SemaRef.CreateRecoveryExpr(E->getBeginLoc(), in CorrectDelayedTyposInExpr()