Home
last modified time | relevance | path

Searched refs:FunctionScopes (Results 1 – 17 of 17) 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/llvm-project/clang/lib/Sema/
DSema.cpp396 for (sema::FunctionScopeInfo *FSI : FunctionScopes) in ~Sema()
1863 if (FunctionScopes.empty() && CachedFunctionScope) { in PushFunctionScope()
1866 FunctionScopes.push_back(CachedFunctionScope.release()); in PushFunctionScope()
1868 FunctionScopes.push_back(new FunctionScopeInfo(getDiagnostics())); in PushFunctionScope()
1875 FunctionScopes.push_back(new BlockScopeInfo(getDiagnostics(), in PushBlockScope()
1881 FunctionScopes.push_back(LSI); in PushLambdaScope()
1969 assert(!FunctionScopes.empty() && "mismatched push/pop!"); in PopFunctionScopeInfo()
1971 markEscapingByrefs(*FunctionScopes.back(), *this); in PopFunctionScopeInfo()
1973 PoppedFunctionScopePtr Scope(FunctionScopes.pop_back_val(), in PopFunctionScopeInfo()
2016 if (!FunctionScopes.empty()) in setFunctionHasBranchIntoScope()
[all …]
DSemaLambda.cpp64 ArrayRef<const clang::sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureReadyLambda() argument
70 unsigned CurScopeIndex = FunctionScopes.size() - 1; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
72 FunctionScopes[CurScopeIndex])) in getStackIndexOfNearestEnclosingCaptureReadyLambda()
75 isa<clang::sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]) && in getStackIndexOfNearestEnclosingCaptureReadyLambda()
84 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex])->CallOperator; in getStackIndexOfNearestEnclosingCaptureReadyLambda()
88 cast<sema::LambdaScopeInfo>(FunctionScopes[CurScopeIndex]); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
130 assert(CurScopeIndex < (FunctionScopes.size() - 1)); in getStackIndexOfNearestEnclosingCaptureReadyLambda()
174 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda() argument
180 getStackIndexOfNearestEnclosingCaptureReadyLambda(FunctionScopes, in getStackIndexOfNearestEnclosingCaptureCapableLambda()
186 assert(((IndexOfCaptureReadyLambda != (FunctionScopes.size() - 1)) || in getStackIndexOfNearestEnclosingCaptureCapableLambda()
[all …]
DSemaTemplateVariadic.cpp281 for (auto *SI : FunctionScopes) in isUnexpandedParameterPackPermitted()
329 for (unsigned N = FunctionScopes.size(); N; --N) { in DiagnoseUnexpandedParameterPacks()
330 sema::FunctionScopeInfo *Func = FunctionScopes[N-1]; in DiagnoseUnexpandedParameterPacks()
DSemaExprCXX.cpp1059 ArrayRef<FunctionScopeInfo *> FunctionScopes, QualType ThisTy, in adjustCVQualifiersForCXXThisWithinLambda() argument
1102 for (int I = FunctionScopes.size(); in adjustCVQualifiersForCXXThisWithinLambda()
1103 I-- && isa<LambdaScopeInfo>(FunctionScopes[I]) && in adjustCVQualifiersForCXXThisWithinLambda()
1105 cast<LambdaScopeInfo>(FunctionScopes[I])->CallOperator); in adjustCVQualifiersForCXXThisWithinLambda()
1107 CurLSI = cast<LambdaScopeInfo>(FunctionScopes[I]); in adjustCVQualifiersForCXXThisWithinLambda()
1198 return adjustCVQualifiersForCXXThisWithinLambda(FunctionScopes, ThisTy, in getCurrentThisType()
1244 : FunctionScopes.size() - 1; in CheckCXXThisCapture()
1272 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
1319 dyn_cast<LambdaScopeInfo>(FunctionScopes[MaxFunctionScopesIndex])) && in CheckCXXThisCapture()
1325 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
[all …]
DSemaStmt.cpp3466 FunctionScopes.back()->Returns.push_back(Result); in ActOnCapScopeReturnStmt()
3468 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in ActOnCapScopeReturnStmt()
3469 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in ActOnCapScopeReturnStmt()
3894 FunctionScopes.back()->Returns.push_back(Result); in BuildReturnStmt()
3896 if (FunctionScopes.back()->FirstReturnLoc.isInvalid()) in BuildReturnStmt()
3897 FunctionScopes.back()->FirstReturnLoc = ReturnLoc; in BuildReturnStmt()
DSemaExpr.cpp4423 if (T->isVariablyModifiedType() && FunctionScopes.size() > 1) { in CreateUnaryExprOrTypeTraitExpr()
4425 for (auto I = FunctionScopes.rbegin(), in CreateUnaryExprOrTypeTraitExpr()
4426 E = std::prev(FunctionScopes.rend()); in CreateUnaryExprOrTypeTraitExpr()
5563 FunctionScopes.size() > 1) { in CreateBuiltinArraySubscriptExpr()
5566 for (auto I = FunctionScopes.rbegin(), in CreateBuiltinArraySubscriptExpr()
5567 E = std::prev(FunctionScopes.rend()); in CreateBuiltinArraySubscriptExpr()
15326 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr()
17403 ? *FunctionScopeIndexToStopAt : FunctionScopes.size() - 1; in tryCaptureVariable()
17407 unsigned FSIndex = FunctionScopes.size() - 1; in tryCaptureVariable()
17459 FunctionScopeInfo *FSI = FunctionScopes[FunctionScopesIndex]; in tryCaptureVariable()
[all …]
DSemaOpenMP.cpp457 for (const FunctionScopeInfo *FSI : llvm::reverse(SemaRef.FunctionScopes)) { in popFunction()
2195 llvm::reverse(FunctionScopes), in isOpenMPCapturedDecl()
2196 CheckScopeInfo ? (FunctionScopes.size() - (StopAt + 1)) : 0)) { in isOpenMPCapturedDecl()
2217 FunctionScopeInfo *FSI = FunctionScopes[I - 1]; in isOpenMPCapturedDecl()
/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()
/external/llvm-project/clang/include/clang/Sema/
DSemaLambda.h34 ArrayRef<const sema::FunctionScopeInfo *> FunctionScopes,
DSema.h674 SmallVector<sema::FunctionScopeInfo *, 4> FunctionScopes; variable
681 return llvm::makeArrayRef(FunctionScopes.begin() + FunctionScopesStart, in getFunctionScopes()
682 FunctionScopes.end()); in getFunctionScopes()
891 S.FunctionScopesStart = S.FunctionScopes.size(); in S()
1732 return FunctionScopes.empty() ? nullptr : FunctionScopes.back(); in getCurFunction()