Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaStmt.cpp395 FunctionScopeInfo *FSI = getCurFunction(); in ActOnAfterCompoundStatementLeadingPragmas()
406 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
449 FPOptions FPO = (getCurFunction()->CompoundScopes.size() == 1) in ActOnCompoundStmt()
467 if (getCurFunction()->SwitchStack.empty()) in ActOnCaseExpr()
472 getCurFunction()->SwitchStack.back().getPointer()->getCond(); in ActOnCaseExpr()
518 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
524 getCurFunction()->SwitchStack.back().setInt(true); in ActOnCaseStmt()
530 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(CS); in ActOnCaseStmt()
542 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
548 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(DS); in ActOnDefaultStmt()
[all …]
H A DSemaCoroutine.cpp505 auto *ScopeInfo = getCurFunction(); in buildCoroutinePromise()
593 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
694 auto *ScopeInfo = getCurFunction(); in ActOnCoroutineBodyStart()
925 *this, getCurFunction()->CoroutinePromise, Loc, "yield_value", E); in ActOnCoyieldExpr()
1094 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
1795 auto *ScopeInfo = getCurFunction(); in buildCoroutineParameterMoves()
H A DSemaStmtAttr.cpp38 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.cpp2260 getCurFunction()->CompoundScopes.push_back( in PushCompoundScope()
2265 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
2274 return getCurFunction()->hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
H A DSemaPseudoObject.cpp852 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
971 S.getCurFunction()->recordUseOfWeak(SyntacticRefExpr, in complete()
H A DSemaExpr.cpp347 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
2115 getCurFunction()->recordUseOfWeak(E); in BuildDeclRefExpr()
2951 getCurFunction()->recordUseOfWeak(Result); in BuildIvarRefExpr()
7560 getCurFunction()->setHasBranchProtectedScope(); in BuildCompoundLiteralExpr()
14203 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
14761 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
16116 if (getCurFunction()) in ActOnAddrLabel()
16117 getCurFunction()->AddrLabels.push_back(Res); in ActOnAddrLabel()
16654 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
16660 if (Body && getCurFunction()->HasPotentialAvailabilityViolations) in ActOnBlockStmtExpr()
[all …]
H A DSemaExprMember.cpp1480 S.getCurFunction()->recordUseOfWeak(Result); in LookupMemberExpr()
H A DSemaExprObjC.cpp2412 getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3386 getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
H A DSemaLookup.cpp5133 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
5134 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
H A DSemaCodeComplete.cpp2291 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
2292 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
5898 if (getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
5901 SwitchStmt *Switch = getCurFunction()->SwitchStack.back().getPointer(); in CodeCompleteCase()
H A DSemaDecl.cpp8222 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow()
8230 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
13250 if (FunctionScopeInfo *FSI = getCurFunction()) in AddInitializerToDecl()
14043 getCurFunction()->addByrefBlockVar(var); in CheckCompleteVariableDeclaration()
15420 FunctionScopeInfo *FSI = getCurFunction(); in ActOnFinishFunctionBody()
H A DSemaChecking.cpp14735 if (getCurFunction() && in DiagnoseAlwaysNonNullPointer()
14736 !getCurFunction()->ModifiedNonNullParams.count(PV)) { in DiagnoseAlwaysNonNullPointer()
16977 getCurFunction()->markSafeWeakUse(LHS); in checkUnsafeExprAssigns()
H A DSemaOpenMP.cpp468 const FunctionScopeInfo *CurFnScope = SemaRef.getCurFunction(); in pushFunction()
22169 getCurFunction()->setHasOMPDeclareReductionCombiner(); in ActOnOpenMPDeclareReductionCombinerStart()
H A DTreeTransform.h7947 auto *ScopeInfo = SemaRef.getCurFunction(); in TransformCoroutineBodyStmt()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h1982 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() function