Home
last modified time | relevance | path

Searched refs:FunctionScopes (Results 1 – 8 of 8) sorted by relevance

/external/clang/lib/Sema/
DSema.cpp129 FunctionScopes.push_back(new FunctionScopeInfo(Diags)); in Sema()
224 for (unsigned I = 1, E = FunctionScopes.size(); I != E; ++I) in ~Sema()
225 delete FunctionScopes[I]; in ~Sema()
226 if (FunctionScopes.size() == 1) in ~Sema()
227 delete FunctionScopes[0]; in ~Sema()
1055 if (FunctionScopes.size() == 1) { in PushFunctionScope()
1058 FunctionScopes.back()->Clear(); in PushFunctionScope()
1059 FunctionScopes.push_back(FunctionScopes.back()); in PushFunctionScope()
1063 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()
1067 FunctionScopes.push_back(new BlockScopeInfo(getDiagnostics(), in PushBlockScope()
[all …]
DSemaLambda.cpp64 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda() argument
71 FunctionScopes[FunctionScopes.size() - 1]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()
79 unsigned CurScopeIndex = FunctionScopes.size() - 1; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
81 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
85 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
127 assert(CurScopeIndex < (FunctionScopes.size() - 1)); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
171 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda() argument
177 getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()
183 assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || in getStackIndexOfNearestEnclosingCaptureCapableLambda()
189 cast<sema::LambdaScopeInfo>(FunctionScopes[IndexOfCaptureReadyLambda]); in getStackIndexOfNearestEnclosingCaptureCapableLambda()
DSemaTemplateVariadic.cpp213 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()
215 dyn_cast<sema::LambdaScopeInfo>(FunctionScopes[N-1])) { in DiagnoseUnexpandedParameterPacks()
DSemaExprCXX.cpp804 *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in CheckCXXThisCapture()
809 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
844 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
851 = dyn_cast<CapturedRegionScopeInfo>(FunctionScopes[idx])) in CheckCXXThisCapture()
5842 S.FunctionScopes.data(), S.FunctionScopes.size()); in CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures()
DSemaStmt.cpp2719 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()
3028 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()
DSemaExpr.cpp10588 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()
12091 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()
12095 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()
12129 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex]; in tryCaptureVariable()
12295 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]); in tryCaptureVariable()
12777 FunctionScopes.back()->PossiblyUnreachableDiags. in DiagRuntimeBehavior()
/external/clang/include/clang/Sema/
DSemaLambda.h31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
DSema.h370 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable
1060 return FunctionScopes.back(); in getCurFunction()
1064 if (FunctionScopes.empty()) in getEnclosingFunction()
1067 for (int e = FunctionScopes.size()-1; e >= 0; --e) { in getEnclosingFunction()
1068 if (isa<sema::BlockScopeInfo>(FunctionScopes[e])) in getEnclosingFunction()
1070 return FunctionScopes[e]; in getEnclosingFunction()