Lines Matching defs:ScopeInfo
27 #include "clang/Sema/ScopeInfo.h"
500 auto *ScopeInfo = getCurFunction();
520 auto &Moves = ScopeInfo->CoroutineParameterMoves;
588 auto *ScopeInfo = S.getCurFunction();
589 assert(ScopeInfo && "missing function scope for function");
591 if (ScopeInfo->FirstCoroutineStmtLoc.isInvalid() && !IsImplicit)
592 ScopeInfo->setFirstCoroutineStmt(Loc, Keyword);
594 if (ScopeInfo->CoroutinePromise)
595 return ScopeInfo;
600 ScopeInfo->CoroutinePromise = S.buildCoroutinePromise(Loc);
601 if (!ScopeInfo->CoroutinePromise)
604 return ScopeInfo;
705 auto *ScopeInfo = getCurFunction();
706 assert(ScopeInfo->CoroutinePromise);
709 if (ScopeInfo->FirstCoroutineStmtLoc == KWLoc)
710 checkReturnStmtInCoroutine(*this, ScopeInfo);
714 if (!ScopeInfo->NeedsCoroutineSuspends)
717 ScopeInfo->setNeedsCoroutineSuspends(false);
724 buildPromiseCall(*this, ScopeInfo->CoroutinePromise, Loc, Name, {});
751 ScopeInfo->setCoroutineSuspends(InitSuspend.get(), FinalSuspend.get());
1911 auto *ScopeInfo = getCurFunction();
1912 if (!ScopeInfo->CoroutineParameterMoves.empty())
1954 ScopeInfo->CoroutineParameterMoves.insert(std::make_pair(PD, Stmt.get()));