Home
last modified time | relevance | path

Searched refs:CapturingScopeInfo (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h698 class CapturingScopeInfo : public FunctionScopeInfo {
700 CapturingScopeInfo(const CapturingScopeInfo&) = default;
710 CapturingScopeInfo(DiagnosticsEngine &Diag, ImplicitCaptureStyle Style) in CapturingScopeInfo() function
790 class BlockScopeInfo final : public CapturingScopeInfo {
803 : CapturingScopeInfo(Diag, ImpCap_Block), TheDecl(Block), in BlockScopeInfo()
816 class CapturedRegionScopeInfo final : public CapturingScopeInfo {
840 : CapturingScopeInfo(Diag, ImpCap_CapturedRegion), in CapturedRegionScopeInfo()
868 public CapturingScopeInfo, public InventedTemplateParameterInfo {
956 : CapturingScopeInfo(Diag, ImpCap_None) { in LambdaScopeInfo()
1096 inline void CapturingScopeInfo::addThisCapture(bool isNested, in addThisCapture()
H A DSema.h201 class CapturingScopeInfo; variable
1079 sema::CapturingScopeInfo *getEnclosingLambdaOrBlock() const;
9083 void deduceClosureReturnType(sema::CapturingScopeInfo &CSI);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp711 void Sema::deduceClosureReturnType(CapturingScopeInfo &CSI) { in deduceClosureReturnType()
1982 mapImplicitCaptureStyle(CapturingScopeInfo::ImplicitCaptureStyle ICS) { in mapImplicitCaptureStyle()
1984 case CapturingScopeInfo::ImpCap_None: in mapImplicitCaptureStyle()
1986 case CapturingScopeInfo::ImpCap_LambdaByval: in mapImplicitCaptureStyle()
1988 case CapturingScopeInfo::ImpCap_CapturedRegion: in mapImplicitCaptureStyle()
1989 case CapturingScopeInfo::ImpCap_LambdaByref: in mapImplicitCaptureStyle()
1991 case CapturingScopeInfo::ImpCap_Block: in mapImplicitCaptureStyle()
H A DScopeInfo.cpp228 bool CapturingScopeInfo::isVLATypeCaptured(const VariableArrayType *VAT) const { in isVLATypeCaptured()
H A DSemaExprCXX.cpp1270 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_LambdaByval && in buildLambdaThisCaptureFixit()
1316 if (CapturingScopeInfo *CSI = in CheckCXXThisCapture()
1317 dyn_cast<CapturingScopeInfo>(FunctionScopes[idx])) { in CheckCXXThisCapture()
1335 if (CSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_LambdaByref || in CheckCXXThisCapture()
1336 CSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_LambdaByval || in CheckCXXThisCapture()
1337 CSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_Block || in CheckCXXThisCapture()
1338 CSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_CapturedRegion || in CheckCXXThisCapture()
1378 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[idx]); in CheckCXXThisCapture()
H A DSema.cpp2539 CapturingScopeInfo *Sema::getEnclosingLambdaOrBlock() const { in getEnclosingLambdaOrBlock()
2541 if (auto *CSI = dyn_cast<CapturingScopeInfo>(Scope)) { in getEnclosingLambdaOrBlock()
2564 while (I != E && isa<CapturingScopeInfo>(*I) && !isa<LambdaScopeInfo>(*I)) in getCurLambda()
H A DSemaTemplateVariadic.cpp371 if (sema::CapturingScopeInfo *CSI = getEnclosingLambdaOrBlock()) { in DiagnoseUnexpandedParameterPacks()
H A DSemaStmt.cpp3526 CapturingScopeInfo *CurCap = cast<CapturingScopeInfo>(getCurFunction()); in ActOnCapScopeReturnStmt()
3914 if (isa<CapturingScopeInfo>(getCurFunction())) in BuildReturnStmt()
H A DSemaExpr.cpp4452 CapturingScopeInfo *CSI) { in captureVariablyModifiedType()
4656 auto *CSI = dyn_cast<CapturingScopeInfo>(*I); in CheckUnaryExprOrTypeTraitOperand()
5376 auto *CSI = dyn_cast<CapturingScopeInfo>(*I); in CreateBuiltinArraySubscriptExpr()
18683 static bool isVariableAlreadyCapturedInScopeInfo(CapturingScopeInfo *CSI, in isVariableAlreadyCapturedInScopeInfo()
18739 static bool isVariableCapturable(CapturingScopeInfo *CSI, ValueDecl *Var, in isVariableCapturable()
19062 assert(LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None); in buildLambdaCaptureFixit()
19258 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FSI); in tryCaptureVariable()
19281 if (LSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None) { in tryCaptureVariable()
19368 if (CSI->ImpCaptureStyle == CapturingScopeInfo::ImpCap_None && !Explicit) { in tryCaptureVariable()
19407 CapturingScopeInfo *CSI = cast<CapturingScopeInfo>(FunctionScopes[I]); in tryCaptureVariable()
H A DSemaDecl.cpp15823 LSI->ImpCaptureStyle = CapturingScopeInfo::ImpCap_None; in RebuildLambdaScopeInfo()
15825 LSI->ImpCaptureStyle = CapturingScopeInfo::ImpCap_LambdaByval; in RebuildLambdaScopeInfo()
15827 LSI->ImpCaptureStyle = CapturingScopeInfo::ImpCap_LambdaByref; in RebuildLambdaScopeInfo()
H A DSemaOpenMP.cpp476 assert(!isa<CapturingScopeInfo>(CurFnScope)); in pushFunction()
489 if (!isa<CapturingScopeInfo>(FSI)) { in popFunction()
2369 if (!isa<CapturingScopeInfo>(FSI)) in isOpenMPCapturedDecl()
2398 if (!isa<CapturingScopeInfo>(FSI)) in isOpenMPCapturedDecl()