Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSemaStmt.cpp328 return getCurFunction()->CompoundScopes.back(); in getCurCompoundScope()
380 if (getCurFunction()->SwitchStack.empty()) { in ActOnCaseStmt()
390 getCurFunction()->SwitchStack.back()->getCond()) { in ActOnCaseStmt()
432 getCurFunction()->SwitchStack.back()->addSwitchCase(CS); in ActOnCaseStmt()
449 if (getCurFunction()->SwitchStack.empty()) { in ActOnDefaultStmt()
455 getCurFunction()->SwitchStack.back()->addSwitchCase(DS); in ActOnDefaultStmt()
662 getCurFunction()->setHasBranchIntoScope(); in ActOnStartOfSwitchStmt()
665 getCurFunction()->SwitchStack.push_back(SS); in ActOnStartOfSwitchStmt()
732 assert(SS == getCurFunction()->SwitchStack.back() && in ActOnFinishSwitchStmt()
735 getCurFunction()->SwitchStack.pop_back(); in ActOnFinishSwitchStmt()
[all …]
DSemaCoroutine.cpp131 auto *ScopeInfo = S.getCurFunction(); in checkCoroutineContext()
363 FunctionScopeInfo *Fn = getCurFunction(); in CheckCompletedCoroutineBody()
DSemaOpenMP.cpp2680 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPParallelDirective()
4128 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSimdDirective()
4163 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPForDirective()
4217 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPForSimdDirective()
4254 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSectionsDirective()
4268 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSectionDirective()
4284 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPSingleDirective()
4314 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPMasterDirective()
4368 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPCriticalDirective()
4415 getCurFunction()->setHasBranchProtectedScope(); in ActOnOpenMPParallelForDirective()
[all …]
DSemaStmtAttr.cpp38 if (S.getCurFunction()->SwitchStack.empty()) { in handleFallThroughAttr()
DSema.cpp1176 getCurFunction()->CompoundScopes.push_back(CompoundScopeInfo()); in PushCompoundScope()
1180 FunctionScopeInfo *CurFunction = getCurFunction(); in PopCompoundScope()
1189 return getCurFunction()->ErrorTrap.hasUnrecoverableErrorOccurred(); in hasAnyUnrecoverableErrorsInThisFunction()
DSemaDeclObjC.cpp395 getCurFunction()->ObjCIsDesignatedInit = true; in ActOnStartOfObjCMethodDef()
396 getCurFunction()->ObjCWarnForNoDesignatedInitChain = in ActOnStartOfObjCMethodDef()
399 getCurFunction()->ObjCIsSecondaryInit = true; in ActOnStartOfObjCMethodDef()
400 getCurFunction()->ObjCWarnForNoInitDelegation = true; in ActOnStartOfObjCMethodDef()
413 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
417 getCurFunction()->ObjCShouldCallSuper = true; in ActOnStartOfObjCMethodDef()
423 getCurFunction()->ObjCShouldCallSuper = in ActOnStartOfObjCMethodDef()
DSemaDecl.cpp5228 getCurFunction()->setHasBranchProtectedScope(); in CheckTypedefForVariablyModifiedType()
6614 getCurFunction()->setHasBranchProtectedScope(); in CheckVariableDeclarationType()
9321 getCurFunction()->setHasBranchProtectedScope(); in AddInitializerToDecl()
9429 getCurFunction()->markSafeWeakUse(Init); in AddInitializerToDecl()
9837 getCurFunction()->setHasBranchProtectedScope(); in ActOnUninitializedDecl()
9957 getCurFunction()->setHasBranchProtectedScope(); in CheckCompleteVariableDeclaration()
11039 if (getLangOpts().Coroutines && !getCurFunction()->CoroutineStmts.empty()) in ActOnFinishFunctionBody()
11119 computeNRVO(Body, getCurFunction()); in ActOnFinishFunctionBody()
11181 computeNRVO(Body, getCurFunction()); in ActOnFinishFunctionBody()
11183 if (getCurFunction()->ObjCShouldCallSuper) { in ActOnFinishFunctionBody()
[all …]
DSemaStmtAsm.cpp728 getCurFunction()->setHasBranchProtectedScope(); in ActOnMSAsmStmt()
DSemaPseudoObject.cpp846 S.getCurFunction()->markSafeWeakUse(RefExpr); in buildRValueOperation()
DSemaExprObjC.cpp2169 getCurFunction()->ObjCShouldCallSuper = false; in ActOnSuperMessage()
2987 getCurFunction()->recordUseOfWeak(Result, Prop); in BuildInstanceMessage()
DSemaCodeComplete.cpp1711 if (!SemaRef.getCurFunction()->SwitchStack.empty()) { in AddOrdinaryNameResults()
3825 if (getCurFunction()->SwitchStack.empty() || !CodeCompleter) in CodeCompleteCase()
3828 SwitchStmt *Switch = getCurFunction()->SwitchStack.back(); in CodeCompleteCase()
DSemaChecking.cpp7702 if (getCurFunction() && in DiagnoseAlwaysNonNullPointer()
7703 !getCurFunction()->ModifiedNonNullParams.count(PV)) { in DiagnoseAlwaysNonNullPointer()
9242 getCurFunction()->markSafeWeakUse(LHS); in checkUnsafeExprAssigns()
DSemaExpr.cpp9594 getCurFunction()->markSafeWeakUse(RHS.get()); in CheckAssignmentOperands()
10039 if (FunctionScopeInfo *FD = S.getCurFunction()) in RecordModifiableNonNullParam()
11635 if (getCurFunction()->NeedsScopeChecking() && in ActOnBlockStmtExpr()
11664 getCurFunction()->setHasBranchProtectedScope(); in ActOnBlockStmtExpr()
DSemaLookup.cpp4354 if (!SemaRef.getCurFunction()->SwitchStack.empty()) { in AddKeywordsToConsumer()
/external/clang/include/clang/Sema/
DSema.h1167 sema::FunctionScopeInfo *getCurFunction() const { in getCurFunction() function
1186 getCurFunction()->recordUseOfWeak(E, IsRead);