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.cpp432 FunctionScopeInfo *FSI = getCurFunction(); in ActOnAfterCompoundStatementLeadingPragmas()
443 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
486 FPOptions FPO = (getCurFunction()->CompoundScopes.size() == 1) in ActOnCompoundStmt()
504 if (getCurFunction()->SwitchStack.empty()) in ActOnCaseExpr()
509 getCurFunction()->SwitchStack.back().getPointer()->getCond(); in ActOnCaseExpr()
550 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
556 getCurFunction()->SwitchStack.back().setInt(true); in ActOnCaseStmt()
569 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(CS); in ActOnCaseStmt()
580 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
593 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(DS); in ActOnDefaultStmt()
[all …]
H A DSemaCoroutine.cpp490 auto *ScopeInfo = getCurFunction(); in buildCoroutinePromise()
578 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
697 auto *ScopeInfo = getCurFunction(); in ActOnCoroutineBodyStart()
969 *this, getCurFunction()->CoroutinePromise, Loc, "yield_value", E); in ActOnCoyieldExpr()
1165 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
1954 auto *ScopeInfo = getCurFunction(); in buildCoroutineParameterMoves()
H A DSemaDeclObjC.cpp471 SemaRef.getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
472 SemaRef.getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
475 SemaRef.getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
476 SemaRef.getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
489 SemaRef.getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
493 SemaRef.getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
499 SemaRef.getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
H A DSemaPseudoObject.cpp858 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
977 S.getCurFunction()->recordUseOfWeak(SyntacticRefExpr, in complete()
H A DSema.cpp2477 getCurFunction()->CompoundScopes.push_back( in PushCompoundScope()
2482 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
2489 return getCurFunction()->hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
H A DSemaStmtAttr.cpp35 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr()
H A DSemaExpr.cpp349 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
2405 getCurFunction()->recordUseOfWeak(E); in BuildDeclRefExpr()
7255 getCurFunction()->setHasBranchProtectedScope(); in BuildCompoundLiteralExpr()
14034 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
14646 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
15979 if (getCurFunction()) in ActOnAddrLabel()
15980 getCurFunction()->AddrLabels.push_back(Res); in ActOnAddrLabel()
16513 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
16519 if (Body && getCurFunction()->HasPotentialAvailabilityViolations) in ActOnBlockStmtExpr()
16631 if (getCurFunction()) in ActOnBlockStmtExpr()
[all …]
H A DSemaExprObjC.cpp2412 SemaRef.getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3389 SemaRef.getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
4916 SemaRef.getCurFunction()->recordUseOfWeak(Result); in BuildIvarRefExpr()
H A DSemaExprMember.cpp1461 S.getCurFunction()->recordUseOfWeak(Result); in LookupMemberExpr()
H A DSemaConcept.cpp128 !dyn_cast_if_present<LambdaScopeInfo>(getCurFunction())) || in CheckConstraintExpression()
H A DSemaLookup.cpp5178 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
5179 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
H A DSemaObjC.cpp226 sema::FunctionScopeInfo *FSI = SemaRef.getCurFunction(); in ActOnObjCAtTryStmt()
H A DSemaCodeComplete.cpp2444 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
2445 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
6161 if (SemaRef.getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
6165 SemaRef.getCurFunction()->SwitchStack.back().getPointer(); in CodeCompleteCase()
H A DSemaDecl.cpp8409 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow()
8421 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
8432 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
13881 if (FunctionScopeInfo *FSI = getCurFunction()) in AddInitializerToDecl()
14688 getCurFunction()->addByrefBlockVar(var); in CheckCompleteVariableDeclaration()
16231 FunctionScopeInfo *FSI = getCurFunction(); in ActOnFinishFunctionBody()
16682 CheckImmediateEscalatingFunctionDefinition(FD, getCurFunction()); in ActOnFinishFunctionBody()
H A DSemaChecking.cpp13040 if (getCurFunction() && in DiagnoseAlwaysNonNullPointer()
13041 !getCurFunction()->ModifiedNonNullParams.count(PV)) { in DiagnoseAlwaysNonNullPointer()
14845 getCurFunction()->markSafeWeakUse(LHS); in checkUnsafeExprAssigns()
H A DSemaType.cpp2290 } else if (sema::FunctionScopeInfo *FSI = getCurFunction()) { in BuildArrayType()
H A DSemaOpenMP.cpp475 const FunctionScopeInfo *CurFnScope = SemaRef.getCurFunction(); in pushFunction()
22304 SemaRef.getCurFunction()->setHasOMPDeclareReductionCombiner(); in ActOnOpenMPDeclareReductionCombinerStart()
H A DTreeTransform.h8743 auto *ScopeInfo = SemaRef.getCurFunction(); in TransformCoroutineBodyStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h1298 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() function
13377 S.CheckImmediateEscalatingFunctionDefinition(FD, S.getCurFunction()); in ~SynthesizedFunctionScope()