Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmt.cpp348 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
404 if (!getCurFunction()->SwitchStack.empty()) { in ActOnCaseExpr()
454 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
460 getCurFunction()->SwitchStack.back().setInt(true); in ActOnCaseStmt()
481 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
728 getCurFunction()->SwitchStack.push_back( in ActOnStartOfSwitchStmt()
829 assert(SS == getCurFunction()->SwitchStack.back().getPointer() && in ActOnFinishSwitchStmt()
832 getCurFunction()->SwitchStack.pop_back(); in ActOnFinishSwitchStmt()
3541 if (isa<CapturingScopeInfo>(getCurFunction())) in BuildReturnStmt()
4029 sema::FunctionScopeInfo *FSI = getCurFunction(); in ActOnCXXTryBlock()
[all …]
H A DSemaCoroutine.cpp526 auto *ScopeInfo = getCurFunction(); in buildCoroutinePromise()
603 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
626 auto *ScopeInfo = getCurFunction(); in ActOnCoroutineBodyStart()
777 *this, getCurFunction()->CoroutinePromise, Loc, "yield_value", E); in ActOnCoyieldExpr()
934 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
1501 auto *ScopeInfo = getCurFunction(); in buildCoroutineParameterMoves()
H A DSemaStmtAttr.cpp39 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr()
H A DSema.cpp1493 getCurFunction()->CompoundScopes.push_back(CompoundScopeInfo(IsStmtExpr)); in PushCompoundScope()
1497 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
1506 return getCurFunction()->ErrorTrap.hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
H A DSemaDeclObjC.cpp463 getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
464 getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
467 getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
468 getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
481 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
485 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
491 getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
H A DSemaPseudoObject.cpp862 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
981 S.getCurFunction()->recordUseOfWeak(SyntacticRefExpr, in complete()
H A DSemaDecl.cpp7061 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
11184 if (FunctionScopeInfo *FSI = getCurFunction()) in AddInitializerToDecl()
11873 getCurFunction()->addByrefBlockVar(var); in CheckCompleteVariableDeclaration()
13180 computeNRVO(Body, getCurFunction()); in ActOnFinishFunctionBody()
13265 computeNRVO(Body, getCurFunction()); in ActOnFinishFunctionBody()
13267 if (getCurFunction()->ObjCShouldCallSuper) { in ActOnFinishFunctionBody()
13270 getCurFunction()->ObjCShouldCallSuper = false; in ActOnFinishFunctionBody()
13299 if (getCurFunction()->ObjCWarnForNoInitDelegation) { in ActOnFinishFunctionBody()
13304 getCurFunction()->ObjCWarnForNoInitDelegation = false; in ActOnFinishFunctionBody()
13316 assert(!getCurFunction()->ObjCShouldCallSuper && in ActOnFinishFunctionBody()
[all …]
H A DSemaExpr.cpp309 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
1729 getCurFunction()->recordUseOfWeak(E); in BuildDeclRefExpr()
2485 getCurFunction()->recordUseOfWeak(Result); in LookupInObjCMethod()
11444 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
11973 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
13758 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
13764 if (Body && getCurFunction()->HasPotentialAvailabilityViolations) in ActOnBlockStmtExpr()
13796 if (getCurFunction()) in ActOnBlockStmtExpr()
13797 getCurFunction()->addBlock(BD); in ActOnBlockStmtExpr()
16864 getCurFunction()->HasPotentialAvailabilityViolations = true; in ActOnObjCAvailabilityCheckExpr()
H A DSemaExprMember.cpp1449 S.getCurFunction()->recordUseOfWeak(Result); in LookupMemberExpr()
H A DSemaCodeComplete.cpp1908 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
1909 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
4476 if (getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
4479 SwitchStmt *Switch = getCurFunction()->SwitchStack.back().getPointer(); in CodeCompleteCase()
H A DSemaLookup.cpp4521 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
4522 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
H A DSemaExprObjC.cpp2232 getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3166 getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
H A DSemaChecking.cpp11459 if (getCurFunction() && in DiagnoseAlwaysNonNullPointer()
11460 !getCurFunction()->ModifiedNonNullParams.count(PV)) { in DiagnoseAlwaysNonNullPointer()
13107 getCurFunction()->markSafeWeakUse(LHS); in checkUnsafeExprAssigns()
H A DSemaOpenMP.cpp254 const FunctionScopeInfo *CurFnScope = SemaRef.getCurFunction(); in pushFunction()
13254 getCurFunction()->setHasOMPDeclareReductionCombiner(); in ActOnOpenMPDeclareReductionCombinerStart()
H A DSemaDeclAttr.cpp8317 getCurFunction()->HasPotentialAvailabilityViolations = true; in DiagnoseAvailabilityOfDecl()
H A DTreeTransform.h7020 auto *ScopeInfo = SemaRef.getCurFunction(); in TransformCoroutineBodyStmt()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DSema.h1358 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() function