| /llvm-project-15.0.7/llvm/unittests/CodeGen/ |
| H A D | LexicalScopesTest.cpp | 189 auto *BlockScope = Children[0]; in TEST_F() local 192 EXPECT_FALSE(BlockScope->isAbstractScope()); in TEST_F() 194 EXPECT_TRUE(FuncScope->dominates(BlockScope)); in TEST_F() 223 auto *BlockScope = Children[0]; in TEST_F() local 277 ASSERT_NE(BlockScope, nullptr); in TEST_F() 281 auto &Ranges = BlockScope->getRanges(); in TEST_F() 313 ASSERT_NE(BlockScope, nullptr); in TEST_F() 324 auto &BlockRanges = BlockScope->getRanges(); in TEST_F() 351 ASSERT_NE(BlockScope, nullptr); in TEST_F() 393 ASSERT_NE(BlockScope, nullptr); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 67 std::vector<Block> BlockScope; variable 119 assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance"); in ~BitstreamWriter() 295 BlockScope.emplace_back(OldCodeSize, BlockSizeWordIndex); in EnterSubblock() 296 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubblock() 305 assert(!BlockScope.empty() && "Block scope imbalance!"); in ExitBlock() 306 const Block &B = BlockScope.back(); in ExitBlock() 323 BlockScope.pop_back(); in ExitBlock()
|
| H A D | BitstreamReader.h | 374 SmallVector<Block, 8> BlockScope; variable 519 if (BlockScope.empty()) return true; in ReadBlockEnd() 531 CurCodeSize = BlockScope.back().PrevCodeSize; in popBlockScope() 533 CurAbbrevs = std::move(BlockScope.back().PrevAbbrevs); in popBlockScope() 534 BlockScope.pop_back(); in popBlockScope()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | Scope.cpp | 42 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in setFlags() 67 if (flags & BlockScope) BlockParent = this; in setFlags() 204 {BlockScope, "BlockScope"}, in dumpImpl()
|
| H A D | Sema.cpp | 2086 void Sema::PushBlockScope(Scope *BlockScope, BlockDecl *Block) { in PushBlockScope() argument 2088 BlockScope, Block)); in PushBlockScope()
|
| H A D | SemaDecl.cpp | 15435 Scope *BlockScope = S; in ImplicitlyDefineFunction() local 15436 while (!BlockScope->isCompoundStmtScope() && BlockScope->getParent()) in ImplicitlyDefineFunction() 15437 BlockScope = BlockScope->getParent(); in ImplicitlyDefineFunction() 15439 Scope *ContextScope = BlockScope; in ImplicitlyDefineFunction() 15452 PushOnScopeChains(ExternCPrev, BlockScope, /*AddToContext*/false); in ImplicitlyDefineFunction() 15542 FunctionDecl *FD = cast<FunctionDecl>(ActOnDeclarator(BlockScope, D)); in ImplicitlyDefineFunction()
|
| H A D | SemaExprCXX.cpp | 848 (Scope::FnScope | Scope::ClassScope | Scope::BlockScope | in ActOnCXXThrow()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Scope.h | 71 BlockScope = 0x40, enumerator 241 bool isBlockScope() const { return Flags & BlockScope; } in isBlockScope() 456 Scope::BlockScope | Scope::TemplateParamScope | in isSwitchScope()
|
| H A D | ScopeInfo.h | 765 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) in BlockScopeInfo() argument 767 TheScope(BlockScope) { in BlockScopeInfo()
|
| H A D | Sema.h | 1920 void PushBlockScope(Scope *BlockScope, BlockDecl *Block);
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | ByteCodeStmtGen.cpp | 136 BlockScope<Emitter> Scope(this); in visitCompoundStmt() 190 BlockScope<Emitter> IfScope(this); in visitIfStmt()
|
| H A D | ByteCodeExprGen.h | 307 template <class Emitter> class BlockScope final : public LocalScope<Emitter> { 309 BlockScope(ByteCodeExprGen<Emitter> *Ctx) : LocalScope<Emitter>(Ctx) {} in BlockScope() function
|
| /llvm-project-15.0.7/llvm/lib/Bitstream/Reader/ |
| H A D | BitstreamReader.cpp | 27 BlockScope.push_back(Block(CurCodeSize)); in EnterSubBlock() 28 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubBlock()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseExpr.cpp | 3533 ParseScope BlockScope(this, Scope::BlockScope | Scope::FnScope | in ParseBlockLiteralExpression() local 3612 BlockScope.Exit(); in ParseBlockLiteralExpression()
|
| H A D | ParseExprCXX.cpp | 1459 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
|
| H A D | ParseDecl.cpp | 3254 Scope::BlockScope | in ParseDeclarationSpecifiers()
|