Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp401 FunctionScopeInfo *FSI = getCurFunction(); in ActOnAfterCompoundStatementLeadingPragmas()
412 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
455 FPOptions FPO = (getCurFunction()->CompoundScopes.size() == 1) in ActOnCompoundStmt()
473 if (getCurFunction()->SwitchStack.empty()) in ActOnCaseExpr()
478 getCurFunction()->SwitchStack.back().getPointer()->getCond(); in ActOnCaseExpr()
524 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
530 getCurFunction()->SwitchStack.back().setInt(true); in ActOnCaseStmt()
543 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(CS); in ActOnCaseStmt()
554 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
567 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(DS); in ActOnDefaultStmt()
[all …]
H A DSemaCoroutine.cpp502 auto *ScopeInfo = getCurFunction(); in buildCoroutinePromise()
590 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
694 auto *ScopeInfo = getCurFunction(); in ActOnCoroutineBodyStart()
923 *this, getCurFunction()->CoroutinePromise, Loc, "yield_value", E); in ActOnCoyieldExpr()
1092 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
1869 auto *ScopeInfo = getCurFunction(); in buildCoroutineParameterMoves()
H A DSemaDeclObjC.cpp472 SemaRef.getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
473 SemaRef.getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
476 SemaRef.getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
477 SemaRef.getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
490 SemaRef.getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
494 SemaRef.getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
500 SemaRef.getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
H A DSema.cpp2310 getCurFunction()->CompoundScopes.push_back( in PushCompoundScope()
2315 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
2322 return getCurFunction()->hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
H A DSemaPseudoObject.cpp860 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
979 S.getCurFunction()->recordUseOfWeak(SyntacticRefExpr, in complete()
H A DSemaStmtAttr.cpp39 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr()
H A DSemaExpr.cpp341 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
2298 getCurFunction()->recordUseOfWeak(E); in BuildDeclRefExpr()
7099 getCurFunction()->setHasBranchProtectedScope(); in BuildCompoundLiteralExpr()
13636 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
14250 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
15613 if (getCurFunction()) in ActOnAddrLabel()
15614 getCurFunction()->AddrLabels.push_back(Res); in ActOnAddrLabel()
16155 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
16161 if (Body && getCurFunction()->HasPotentialAvailabilityViolations) in ActOnBlockStmtExpr()
16270 if (getCurFunction()) in ActOnBlockStmtExpr()
[all …]
H A DSemaExprObjC.cpp2423 SemaRef.getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3399 SemaRef.getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
4922 SemaRef.getCurFunction()->recordUseOfWeak(Result); in BuildIvarRefExpr()
H A DSemaExprMember.cpp1526 S.getCurFunction()->recordUseOfWeak(Result); in LookupMemberExpr()
H A DSemaConcept.cpp130 !dyn_cast_if_present<LambdaScopeInfo>(getCurFunction())) || in CheckConstraintExpression()
H A DSemaLookup.cpp5086 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
5087 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
H A DSemaObjC.cpp230 sema::FunctionScopeInfo *FSI = SemaRef.getCurFunction(); in ActOnObjCAtTryStmt()
H A DSemaCodeComplete.cpp2360 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
2361 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
6011 if (SemaRef.getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
6015 SemaRef.getCurFunction()->SwitchStack.back().getPointer(); in CodeCompleteCase()
H A DSemaDecl.cpp8215 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow()
8227 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
8238 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
13536 if (FunctionScopeInfo *FSI = getCurFunction()) in AddInitializerToDecl()
14323 getCurFunction()->addByrefBlockVar(var); in CheckCompleteVariableDeclaration()
15789 FunctionScopeInfo *FSI = getCurFunction(); in ActOnFinishFunctionBody()
H A DSemaChecking.cpp11608 if (getCurFunction() && in DiagnoseAlwaysNonNullPointer()
11609 !getCurFunction()->ModifiedNonNullParams.count(PV)) { in DiagnoseAlwaysNonNullPointer()
13412 getCurFunction()->markSafeWeakUse(LHS); in checkUnsafeExprAssigns()
H A DSemaType.cpp2265 } else if (sema::FunctionScopeInfo *FSI = getCurFunction()) { in BuildArrayType()
H A DSemaOpenMP.cpp478 const FunctionScopeInfo *CurFnScope = SemaRef.getCurFunction(); in pushFunction()
21408 SemaRef.getCurFunction()->setHasOMPDeclareReductionCombiner(); in ActOnOpenMPDeclareReductionCombinerStart()
H A DTreeTransform.h8393 auto *ScopeInfo = SemaRef.getCurFunction(); in TransformCoroutineBodyStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h1033 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() function
13109 S.CheckImmediateEscalatingFunctionDefinition(FD, S.getCurFunction()); in ~SynthesizedFunctionScope()