Home
last modified time | relevance | path

Searched refs:getCurFunction (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp395 FunctionScopeInfo *FSI = getCurFunction(); in ActOnAfterCompoundStatementLeadingPragmas()
406 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
467 if (getCurFunction()->SwitchStack.empty()) in ActOnCaseExpr()
518 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
542 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
1117 getCurFunction()->SwitchStack.push_back( in ActOnStartOfSwitchStmt()
1221 getCurFunction()->SwitchStack.pop_back(); in ActOnFinishSwitchStmt()
3940 if (isa<CapturingScopeInfo>(getCurFunction())) in BuildReturnStmt()
4226 sema::FunctionScopeInfo *FSI = getCurFunction(); in ActOnObjCAtTryStmt()
4464 sema::FunctionScopeInfo *FSI = getCurFunction(); in ActOnCXXTryBlock()
[all …]
H A DSemaCoroutine.cpp505 auto *ScopeInfo = getCurFunction(); in buildCoroutinePromise()
593 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
694 auto *ScopeInfo = getCurFunction(); in ActOnCoroutineBodyStart()
917 *this, getCurFunction()->CoroutinePromise, Loc, "yield_value", E); in ActOnCoyieldExpr()
1072 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
1668 auto *ScopeInfo = getCurFunction(); in buildCoroutineParameterMoves()
H A DSemaStmtAttr.cpp37 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr()
H A DSemaDeclObjC.cpp464 getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
465 getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
468 getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
469 getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
482 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
486 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
492 getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
H A DSema.cpp2223 getCurFunction()->CompoundScopes.push_back( in PushCompoundScope()
2228 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
2237 return getCurFunction()->hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
H A DSemaPseudoObject.cpp852 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
971 S.getCurFunction()->recordUseOfWeak(SyntacticRefExpr, in complete()
H A DSemaExprMember.cpp1480 S.getCurFunction()->recordUseOfWeak(Result); in LookupMemberExpr()
H A DSemaExpr.cpp344 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
2116 getCurFunction()->recordUseOfWeak(E); in BuildDeclRefExpr()
2948 getCurFunction()->recordUseOfWeak(Result); in BuildIvarRefExpr()
7320 getCurFunction()->setHasBranchProtectedScope(); in BuildCompoundLiteralExpr()
13916 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
14483 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
16386 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
16392 if (Body && getCurFunction()->HasPotentialAvailabilityViolations) in ActOnBlockStmtExpr()
16500 if (getCurFunction()) in ActOnBlockStmtExpr()
16501 getCurFunction()->addBlock(BD); in ActOnBlockStmtExpr()
H A DSemaExprObjC.cpp2414 getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3392 getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
H A DSemaLookup.cpp5124 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
5125 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
H A DSemaCodeComplete.cpp2261 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
2262 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
5847 if (getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
5850 SwitchStmt *Switch = getCurFunction()->SwitchStack.back().getPointer(); in CodeCompleteCase()
H A DSemaDecl.cpp8097 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow()
8105 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
12872 if (FunctionScopeInfo *FSI = getCurFunction()) in AddInitializerToDecl()
13660 getCurFunction()->addByrefBlockVar(var); in CheckCompleteVariableDeclaration()
14993 FunctionScopeInfo *FSI = getCurFunction(); in ActOnFinishFunctionBody()
H A DSemaChecking.cpp14403 if (getCurFunction() && in DiagnoseAlwaysNonNullPointer()
14404 !getCurFunction()->ModifiedNonNullParams.count(PV)) { in DiagnoseAlwaysNonNullPointer()
16698 getCurFunction()->markSafeWeakUse(LHS); in checkUnsafeExprAssigns()
H A DSemaOpenMP.cpp465 const FunctionScopeInfo *CurFnScope = SemaRef.getCurFunction(); in pushFunction()
21878 getCurFunction()->setHasOMPDeclareReductionCombiner(); in ActOnOpenMPDeclareReductionCombinerStart()
H A DTreeTransform.h7837 auto *ScopeInfo = SemaRef.getCurFunction(); in TransformCoroutineBodyStmt()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h1950 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() function