Home
last modified time | relevance | path

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

/external/clang/lib/Sema/
DSema.cpp130 FunctionScopes.push_back(new FunctionScopeInfo(Diags));
266 for (unsigned I = 1, E = FunctionScopes.size(); I != E; ++I) in ~Sema()
267 delete FunctionScopes[I]; in ~Sema()
268 if (FunctionScopes.size() == 1) in ~Sema()
269 delete FunctionScopes[0]; in ~Sema()
1121 if (FunctionScopes.size() == 1) { in PushFunctionScope()
1124 FunctionScopes.back()->Clear(); in PushFunctionScope()
1125 FunctionScopes.push_back(FunctionScopes.back()); in PushFunctionScope()
1129 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()
1133 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()
[all …]
DSemaTemplateVariadic.cpp208 for (auto *SI : FunctionScopes) in isUnexpandedParameterPackPermitted()
227 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()
229 dyn_cast<sema::LambdaScopeInfo>(FunctionScopes[N-1])) { in DiagnoseUnexpandedParameterPacks()
DSemaExprCXX.cpp876 ArrayRef<FunctionScopeInfo *> FunctionScopes, QualType ThisTy, in adjustCVQualifiersForCXXThisWithinLambda() argument
902 for (int I = FunctionScopes.size(); in adjustCVQualifiersForCXXThisWithinLambda()
903 I-- && isa<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda()
905 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda()
996 return adjustCVQualifiersForCXXThisWithinLambda(FunctionScopes, ThisTy, in getCurrentThisType()
1084 *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in CheckCXXThisCapture()
1112 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
1158 dyn_cast<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) && in CheckCXXThisCapture()
1166 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
1177 = dyn_cast<CapturedRegionScopeInfo>(FunctionScopes[idx])) in CheckCXXThisCapture()
[all …]
DSemaStmt.cpp3010 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()
3012 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in ActOnCapScopeReturnStmt()
3013 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in ActOnCapScopeReturnStmt()
3397 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()
3399 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in BuildReturnStmt()
3400 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in BuildReturnStmt()
DSemaExpr.cpp3963 if (T->isVariablyModifiedType() && FunctionScopes.size() > 1) { in CreateUnaryExprOrTypeTraitExpr()
3965 for (auto I = FunctionScopes.rbegin(), in CreateUnaryExprOrTypeTraitExpr()
3966 E = std::prev(FunctionScopes.rend()); in CreateUnaryExprOrTypeTraitExpr()
12101 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()
13564 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()
13568 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()
13617 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex]; in tryCaptureVariable()
13717 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]); in tryCaptureVariable()
14232 FunctionScopes.back()->PossiblyUnreachableDiags. in DiagRuntimeBehavior()
/external/clang/include/clang/Sema/
DSemaLambda.h31 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
DSema.h466 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable
1188 return FunctionScopes.back(); in getCurFunction()
1192 if (FunctionScopes.empty()) in getEnclosingFunction()
1195 for (int e = FunctionScopes.size()-1; e >= 0; --e) { in getEnclosingFunction()
1196 if (isa<sema::BlockScopeInfo>(FunctionScopes[e])) in getEnclosingFunction()
1198 return FunctionScopes[e]; in getEnclosingFunction()