Home
last modified time | relevance | path

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

12

/external/clang/lib/Sema/
DSemaStmt.cpp329 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
381 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
391 getCurFunction()->SwitchStack.back()->getCond()) { in ActOnCaseStmt()
433 getCurFunction()->SwitchStack.back()->addSwitchCase(CS); in ActOnCaseStmt()
450 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
456 getCurFunction()->SwitchStack.back()->addSwitchCase(DS); in ActOnDefaultStmt()
540 getCurFunction()->setHasBranchProtectedScope(); in BuildIfStmt()
671 getCurFunction()->setHasBranchIntoScope(); in ActOnStartOfSwitchStmt()
675 getCurFunction()->SwitchStack.push_back(SS); in ActOnStartOfSwitchStmt()
742 assert(SS == getCurFunction()->SwitchStack.back() && in ActOnFinishSwitchStmt()
[all …]
DSemaCoroutine.cpp131 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
363 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
DSemaOpenMP.cpp3891 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPParallelDirective()
5502 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSimdDirective()
5538 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPForDirective()
5593 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPForSimdDirective()
5630 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSectionsDirective()
5644 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSectionDirective()
5660 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSingleDirective()
5690 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPMasterDirective()
5744 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPCriticalDirective()
5792 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPParallelForDirective()
[all …]
DSemaStmtAttr.cpp40 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr()
DSema.cpp1169 getCurFunction()->CompoundScopes.push_back(CompoundScopeInfo()); in PushCompoundScope()
1173 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
1182 return getCurFunction()->ErrorTrap.hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
DSemaDeclObjC.cpp394 getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
395 getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
398 getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
399 getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
412 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
416 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
422 getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
DSemaDecl.cpp5362 getCurFunction()->setHasBranchProtectedScope(); in CheckTypedefForVariablyModifiedType()
6893 getCurFunction()->setHasBranchProtectedScope(); in CheckVariableDeclarationType()
9656 getCurFunction()->setHasBranchProtectedScope(); in AddInitializerToDecl()
9766 getCurFunction()->markSafeWeakUse(Init); in AddInitializerToDecl()
10183 getCurFunction()->setHasBranchProtectedScope(); in ActOnUninitializedDecl()
10319 getCurFunction()->setHasBranchProtectedScope(); in CheckCompleteVariableDeclaration()
11445 if (getLangOpts().Coroutines && !getCurFunction()->CoroutineStmts.empty()) in ActOnFinishFunctionBody()
11529 computeNRVO(Body, getCurFunction()); in ActOnFinishFunctionBody()
11591 computeNRVO(Body, getCurFunction()); in ActOnFinishFunctionBody()
11593 if (getCurFunction()->ObjCShouldCallSuper) { in ActOnFinishFunctionBody()
[all …]
DSemaStmtAsm.cpp732 getCurFunction()->setHasBranchProtectedScope(); in ActOnMSAsmStmt()
DSemaPseudoObject.cpp847 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
DSemaExprObjC.cpp2184 getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3014 getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
DSemaCodeComplete.cpp1723 if (!SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
3845 if (getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
3848 SwitchStmt *Switch = getCurFunction()->SwitchStack.back(); in CodeCompleteCase()
DSemaExpr.cpp379 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
10043 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
10553 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
12166 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
12195 getCurFunction()->setHasBranchProtectedScope(); in ActOnBlockStmtExpr()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp390 FunctionScopeInfo *FSI = getCurFunction(); in ActOnAfterCompoundStatementLeadingPragmas()
401 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
449 if (getCurFunction()->SwitchStack.empty()) in ActOnCaseExpr()
454 getCurFunction()->SwitchStack.back().getPointer()->getCond(); in ActOnCaseExpr()
500 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
506 getCurFunction()->SwitchStack.back().setInt(true); in ActOnCaseStmt()
512 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(CS); in ActOnCaseStmt()
524 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
530 getCurFunction()->SwitchStack.back().getPointer()->addSwitchCase(DS); in ActOnDefaultStmt()
800 getCurFunction()->SwitchStack.push_back( in ActOnStartOfSwitchStmt()
[all …]
DSemaCoroutine.cpp551 auto *ScopeInfo = getCurFunction(); in buildCoroutinePromise()
635 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
732 auto *ScopeInfo = getCurFunction(); in ActOnCoroutineBodyStart()
930 *this, getCurFunction()->CoroutinePromise, Loc, "yield_value", E); in ActOnCoyieldExpr()
1087 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
1657 auto *ScopeInfo = getCurFunction(); in buildCoroutineParameterMoves()
DSemaStmtAttr.cpp38 auto *FnScope = S.getCurFunction(); in handleFallThroughAttr()
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()
DSema.cpp1999 getCurFunction()->CompoundScopes.push_back(CompoundScopeInfo(IsStmtExpr)); in PushCompoundScope()
2003 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
2012 return getCurFunction()->hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
DSemaPseudoObject.cpp852 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
971 S.getCurFunction()->recordUseOfWeak(SyntacticRefExpr, in complete()
DSemaAvailability.cpp948 getCurFunction()->HasPotentialAvailabilityViolations = true; in DiagnoseAvailabilityOfDecl()
DSemaExpr.cpp333 << getCurFunction()->HasOMPDeclareReductionCombiner; in DiagnoseUseOfDecl()
2051 getCurFunction()->recordUseOfWeak(E); in BuildDeclRefExpr()
2883 getCurFunction()->recordUseOfWeak(Result); in BuildIvarRefExpr()
6902 getCurFunction()->setHasBranchProtectedScope(); in BuildCompoundLiteralExpr()
12972 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
13531 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
15378 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
15384 if (Body && getCurFunction()->HasPotentialAvailabilityViolations) in ActOnBlockStmtExpr()
15492 if (getCurFunction()) in ActOnBlockStmtExpr()
15493 getCurFunction()->addBlock(BD); in ActOnBlockStmtExpr()
[all …]
DSemaExprMember.cpp1464 S.getCurFunction()->recordUseOfWeak(Result); in LookupMemberExpr()
DSemaCodeComplete.cpp2227 if (SemaRef.getCurFunction() && in AddOrdinaryNameResults()
2228 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
5420 if (getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
5423 SwitchStmt *Switch = getCurFunction()->SwitchStack.back().getPointer(); in CodeCompleteCase()
DSemaExprObjC.cpp2413 getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
3391 getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
DSemaLookup.cpp4750 if (SemaRef.getCurFunction() && in AddKeywordsToConsumer()
4751 !SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
DSemaDecl.cpp7601 const auto *LSI = cast<LambdaScopeInfo>(getCurFunction()); in CheckShadow()
7609 cast<LambdaScopeInfo>(getCurFunction()) in CheckShadow()
12209 if (FunctionScopeInfo *FSI = getCurFunction()) in AddInitializerToDecl()
13025 getCurFunction()->addByrefBlockVar(var); in CheckCompleteVariableDeclaration()
14290 FunctionScopeInfo *FSI = getCurFunction(); in ActOnFinishFunctionBody()

12