Lines Matching refs:BSI
3060 if (const BlockScopeInfo *BSI = getCurBlock()) in BuildPredefinedExpr() local
3061 currentDecl = BSI->TheDecl; in BuildPredefinedExpr()
3976 else if (auto *BSI = dyn_cast<BlockScopeInfo>(CSI)) in CreateUnaryExprOrTypeTraitExpr() local
3977 DC = BSI->TheDecl; in CreateUnaryExprOrTypeTraitExpr()
12101 BlockScopeInfo *BSI = cast<BlockScopeInfo>(FunctionScopes.back()); in ActOnBlockStmtExpr() local
12103 if (BSI->HasImplicitReturnType) in ActOnBlockStmtExpr()
12104 deduceClosureReturnType(*BSI); in ActOnBlockStmtExpr()
12109 if (!BSI->ReturnType.isNull()) in ActOnBlockStmtExpr()
12110 RetTy = BSI->ReturnType; in ActOnBlockStmtExpr()
12112 bool NoReturn = BSI->TheDecl->hasAttr<NoReturnAttr>(); in ActOnBlockStmtExpr()
12118 for (CapturingScopeInfo::Capture &Cap : BSI->Captures) { in ActOnBlockStmtExpr()
12125 BSI->TheDecl->setCaptures(Context, Captures, BSI->CXXThisCaptureIndex != 0); in ActOnBlockStmtExpr()
12128 if (!BSI->FunctionType.isNull()) { in ActOnBlockStmtExpr()
12129 const FunctionType *FTy = BSI->FunctionType->getAs<FunctionType>(); in ActOnBlockStmtExpr()
12144 BlockTy = BSI->FunctionType; in ActOnBlockStmtExpr()
12162 DiagnoseUnusedParameters(BSI->TheDecl->parameters()); in ActOnBlockStmtExpr()
12170 BSI->TheDecl->setBody(cast<CompoundStmt>(Body)); in ActOnBlockStmtExpr()
12176 !BSI->TheDecl->isDependentContext()) in ActOnBlockStmtExpr()
12177 computeNRVO(Body, BSI); in ActOnBlockStmtExpr()
12179 BlockExpr *Result = new (Context) BlockExpr(BSI->TheDecl, BlockTy); in ActOnBlockStmtExpr()
13287 static bool captureInBlock(BlockScopeInfo *BSI, VarDecl *Var, in captureInBlock() argument
13370 BSI->addCapture(Var, HasBlocksAttr, ByRef, Nested, Loc, in captureInBlock()
13719 if (BlockScopeInfo *BSI = dyn_cast<BlockScopeInfo>(CSI)) { in tryCaptureVariable() local
13720 if (!captureInBlock(BSI, Var, ExprLoc, in tryCaptureVariable()