Lines Matching defs:FuncScope
144 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
145 EXPECT_EQ(FuncScope->getParent(), nullptr);
146 EXPECT_EQ(FuncScope->getDesc(), OurFunc);
147 EXPECT_EQ(FuncScope->getInlinedAt(), nullptr);
148 EXPECT_EQ(FuncScope->getScopeNode(), OurFunc);
149 EXPECT_FALSE(FuncScope->isAbstractScope());
150 EXPECT_EQ(FuncScope->getChildren().size(), 0u);
154 auto &Ranges = FuncScope->getRanges();
161 EXPECT_TRUE(FuncScope->dominates(FuncScope));
186 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
187 EXPECT_EQ(FuncScope->getDesc(), OurFunc);
188 auto &Children = FuncScope->getChildren();
195 EXPECT_TRUE(FuncScope->dominates(BlockScope));
196 EXPECT_FALSE(BlockScope->dominates(FuncScope));
197 EXPECT_EQ(FuncScope->getParent(), nullptr);
198 EXPECT_EQ(BlockScope->getParent(), FuncScope);
221 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
222 auto &Children = FuncScope->getChildren();
234 EXPECT_EQ(FuncScope->getParent(), nullptr);
235 EXPECT_EQ(BlockScope->getParent(), FuncScope);
256 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
260 auto &Ranges = FuncScope->getRanges();
291 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
292 auto &FuncRanges = FuncScope->getRanges();
310 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
313 ASSERT_NE(FuncScope, nullptr);
319 auto &FuncRanges = FuncScope->getRanges();
348 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
351 ASSERT_NE(FuncScope, nullptr);
355 EXPECT_TRUE(FuncScope->dominates(BlockScope));
356 EXPECT_TRUE(FuncScope->dominates(OtherBlockScope));
357 EXPECT_FALSE(BlockScope->dominates(FuncScope));
359 EXPECT_FALSE(OtherBlockScope->dominates(FuncScope));
390 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
393 ASSERT_NE(FuncScope, nullptr);
447 LexicalScope *FuncScope = LS.getCurrentFunctionScope();
449 ASSERT_NE(FuncScope, nullptr);