Lines Matching defs:LocalScope
148 /// LocalScope - Node in tree of local scopes created for C++ implicit
156 /// LocalScope object using CFGBuilder::ScopePos as link to previous scope
167 /// LocalScope can break this assumption),
169 class LocalScope {
176 const LocalScope* Scope;
191 const_iterator(const LocalScope& S, unsigned I)
251 LocalScope(BumpVectorContext ctx, const_iterator P)
265 int LocalScope::const_iterator::distance(LocalScope::const_iterator L) {
280 /// LocalScope::const_iterator that specifies position in LocalScope graph.
283 BlockScopePosPair(CFGBlock *b, LocalScope::const_iterator scopePos)
287 LocalScope::const_iterator scopePosition;
382 LocalScope::const_iterator ScopePos;
580 void addAutomaticObjDtors(LocalScope::const_iterator B,
581 LocalScope::const_iterator E, Stmt *S);
585 LocalScope* createOrReuseLocalScope(LocalScope* Scope);
588 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
589 LocalScope* Scope = nullptr);
590 LocalScope* addLocalScopeForVarDecl(VarDecl *VD, LocalScope* Scope = nullptr);
627 LocalScope::const_iterator B, LocalScope::const_iterator E);
1213 void CFGBuilder::addAutomaticObjDtors(LocalScope::const_iterator B,
1214 LocalScope::const_iterator E, Stmt *S) {
1227 for (LocalScope::const_iterator I = B; I != E; ++I)
1296 /// createOrReuseLocalScope - If Scope is NULL create new LocalScope. Either
1297 /// way return valid LocalScope object.
1298 LocalScope* CFGBuilder::createOrReuseLocalScope(LocalScope* Scope) {
1302 return new (alloc.Allocate<LocalScope>())
1303 LocalScope(BumpVectorContext(alloc), ScopePos);
1306 /// addLocalScopeForStmt - Add LocalScope to local scopes tree for statement
1312 LocalScope *Scope = nullptr;
1330 /// addLocalScopeForDeclStmt - Add LocalScope for declaration statement. Will
1332 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS,
1333 LocalScope* Scope) {
1343 /// addLocalScopeForVarDecl - Add LocalScope for variable declaration. It will
1346 LocalScope* CFGBuilder::addLocalScopeForVarDecl(VarDecl *VD,
1347 LocalScope* Scope) {
1406 LocalScope::const_iterator scopeBeginPos = ScopePos;
1419 LocalScope::const_iterator B, LocalScope::const_iterator E) {
1423 for (LocalScope::const_iterator I = B; I != E; ++I)
1943 LocalScope::const_iterator scopeBeginPos = ScopePos;
2169 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2174 LocalScope::const_iterator BeginScopePos = ScopePos;
2293 addAutomaticObjDtors(ScopePos, LocalScope::const_iterator(), R);
2386 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2393 LocalScope::const_iterator LoopBeginScopePos = ScopePos;
2397 LocalScope::const_iterator ContinueScopePos = ScopePos;
2731 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2735 LocalScope::const_iterator LoopBeginScopePos = ScopePos;
3060 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
3065 LocalScope::const_iterator SwitchBeginScopePos = ScopePos;
3343 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
3348 LocalScope::const_iterator BeginScopePos = ScopePos;
3395 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
3404 LocalScope::const_iterator ContinueScopePos = ScopePos;