| /llvm-project/llvm/unittests/CodeGen/ |
| H A D | LexicalScopesTest.cpp | 190 auto *BlockScope = Children[0]; in TEST_F() 191 EXPECT_EQ(LS.findLexicalScope(InBlockLoc.get()), BlockScope); in TEST_F() local 192 EXPECT_EQ(BlockScope->getDesc(), InBlockLoc->getScope()); in TEST_F() 193 EXPECT_FALSE(BlockScope->isAbstractScope()); in TEST_F() 195 EXPECT_TRUE(FuncScope->dominates(BlockScope)); in TEST_F() 196 EXPECT_FALSE(BlockScope->dominates(FuncScope)); in TEST_F() 198 EXPECT_EQ(BlockScope->getParent(), FuncScope); in TEST_F() 224 auto *BlockScope = Children[0]; in TEST_F() 225 auto &BlockChildren = BlockScope->getChildren(); in TEST_F() local 235 EXPECT_EQ(BlockScope in TEST_F() 278 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); TEST_F() local 312 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); TEST_F() local 350 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); TEST_F() local 392 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); TEST_F() local 449 LexicalScope *BlockScope = LS.findLexicalScope(InBlockLoc.get()); TEST_F() local [all...] |
| /llvm-project/clang/lib/Sema/ |
| H A D | Scope.cpp | 43 if ((Flags & (FnScope | ClassScope | BlockScope | TemplateParamScope | in setFlags() 72 if (flags & BlockScope) BlockParent = this; in setFlags() 212 {BlockScope, "BlockScope"}, in dumpImpl()
|
| H A D | Sema.cpp | 2193 void Sema::PushBlockScope(Scope *BlockScope, BlockDecl *Block) { in RecordParsingTemplateParameterDepth() 2195 BlockScope, Block)); 2174 PushBlockScope(Scope * BlockScope,BlockDecl * Block) PushBlockScope() argument
|
| H A D | SemaDecl.cpp | 16454 Scope *BlockScope = S; in AddKnownFunctionAttributes() 16455 while (!BlockScope->isCompoundStmtScope() && BlockScope->getParent()) in AddKnownFunctionAttributes() 16456 BlockScope = BlockScope->getParent(); in AddKnownFunctionAttributes() 16462 Scope *ContextScope = BlockScope; in AddKnownFunctionAttributes() 16477 PushOnScopeChains(ExternCPrev, BlockScope, /*AddToContext*/false); in AddKnownFunctionAttributes() 16567 FunctionDecl *FD = cast<FunctionDecl>(ActOnDeclarator(BlockScope, D)); in AddKnownFunctionAttributes() 16208 Scope *BlockScope = S; ImplicitlyDefineFunction() local
|
| H A D | SemaExprCXX.cpp | 857 (Scope::FnScope | Scope::ClassScope | Scope::BlockScope | in ActOnCXXThrow()
|
| /llvm-project/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 78 std::vector<Block> BlockScope; variable 168 assert(BlockScope.empty() && CurAbbrevs.empty() && "Block imbalance"); in ~BitstreamWriter() 381 BlockScope.emplace_back(OldCodeSize, BlockSizeWordIndex); in EnterSubblock() 382 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubblock() 391 assert(!BlockScope.empty() && "Block scope imbalance!"); in ExitBlock() 392 const Block &B = BlockScope.back(); in ExitBlock() 409 BlockScope.pop_back(); in ExitBlock()
|
| H A D | BitstreamReader.h | 373 SmallVector<Block, 8> BlockScope; variable 518 if (BlockScope.empty()) return true; in ReadBlockEnd() 530 CurCodeSize = BlockScope.back().PrevCodeSize; in popBlockScope() 532 CurAbbrevs = std::move(BlockScope.back().PrevAbbrevs); in popBlockScope() 533 BlockScope.pop_back(); in popBlockScope()
|
| /llvm-project/clang/include/clang/Sema/ |
| H A D | Scope.h | 75 BlockScope = 0x40, enumerator 207 /// BlockScope if this scope is not one, or null if there is none. 268 bool isBlockScope() const { return Flags & BlockScope; } 484 Scope::BlockScope | Scope::TemplateParamScope | in isSwitchScope() 553 (Scope::FnScope | Scope::ClassScope | Scope::BlockScope |
|
| H A D | ScopeInfo.h | 802 BlockScopeInfo(DiagnosticsEngine &Diag, Scope *BlockScope, BlockDecl *Block) 804 TheScope(BlockScope) { in classof() 796 BlockScopeInfo(DiagnosticsEngine & Diag,Scope * BlockScope,BlockDecl * Block) BlockScopeInfo() argument
|
| H A D | Sema.h | 651 void PushBlockScope(Scope *BlockScope, BlockDecl *Block);
|
| /llvm-project/llvm/lib/Bitstream/Reader/ |
| H A D | BitstreamReader.cpp | 27 // Save the current block's state on BlockScope. in EnterSubBlock() 28 BlockScope.push_back(Block(CurCodeSize)); in EnterSubBlock() 29 BlockScope.back().PrevAbbrevs.swap(CurAbbrevs); in EnterSubBlock()
|
| /llvm-project/clang/lib/AST/Interp/ |
| H A D | Compiler.h | |
| H A D | Compiler.cpp | |
| /llvm-project/clang/lib/Parse/ |
| H A D | ParseExpr.cpp | 3832 ParseScope BlockScope(this, Scope::BlockScope | Scope::FnScope | in ParseBlockLiteralExpression() 3911 BlockScope.Exit(); in ParseAvailabilitySpec() 3761 ParseScope BlockScope(this, Scope::BlockScope | Scope::FnScope | ParseBlockLiteralExpression() local
|
| H A D | ParseExprCXX.cpp | 1622 // FIXME: Rename BlockScope -> ClosureScope if we decide to continue using in ParseLambdaExpressionAfterIntroducer() 1624 unsigned ScopeFlags = Scope::BlockScope | Scope::FnScope | Scope::DeclScope | in ParseLambdaExpressionAfterIntroducer()
|
| H A D | ParseDecl.cpp | 3767 Scope::BlockScope | in ParseDeclarationSpecifiers()
|