Home | History | Annotate | Download | only in Analysis

Lines Matching refs:LocalScope

75 /// LocalScope - Node in tree of local scopes created for C++ implicit
83 /// LocalScope object using CFGBuilder::ScopePos as link to previous scope
94 /// LocalScope can break this assumption),
96 class LocalScope {
103 const LocalScope* Scope;
118 const_iterator(const LocalScope& S, unsigned I)
178 LocalScope(BumpVectorContext &ctx, const_iterator P)
192 int LocalScope::const_iterator::distance(LocalScope::const_iterator L) {
207 /// and LocalScope::const_iterator that specifies position in LocalScope graph.
210 BlockScopePosPair(CFGBlock *b, LocalScope::const_iterator scopePos)
214 LocalScope::const_iterator scopePosition;
304 LocalScope::const_iterator ScopePos;
435 void addAutomaticObjDtors(LocalScope::const_iterator B,
436 LocalScope::const_iterator E, Stmt *S);
440 LocalScope* createOrReuseLocalScope(LocalScope* Scope);
443 LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS, LocalScope* Scope = NULL);
444 LocalScope* addLocalScopeForVarDecl(VarDecl *VD, LocalScope* Scope = NULL);
474 LocalScope::const_iterator B, LocalScope::const_iterator E);
818 void CFGBuilder::addAutomaticObjDtors(LocalScope::const_iterator B,
819 LocalScope::const_iterator E, Stmt *S) {
832 for (LocalScope::const_iterator I = B; I != E; ++I)
905 /// createOrReuseLocalScope - If Scope is NULL create new LocalScope. Either
906 /// way return valid LocalScope object.
907 LocalScope* CFGBuilder::createOrReuseLocalScope(LocalScope* Scope) {
910 Scope = alloc.Allocate<LocalScope>();
912 new (Scope) LocalScope(ctx, ScopePos);
917 /// addLocalScopeForStmt - Add LocalScope to local scopes tree for statement
923 LocalScope *Scope = 0;
942 /// addLocalScopeForDeclStmt - Add LocalScope for declaration statement. Will
944 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS,
945 LocalScope* Scope) {
957 /// addLocalScopeForVarDecl - Add LocalScope for variable declaration. It will
960 LocalScope* CFGBuilder::addLocalScopeForVarDecl(VarDecl *VD,
961 LocalScope* Scope) {
1020 LocalScope::const_iterator scopeBeginPos = ScopePos;
1033 LocalScope::const_iterator B, LocalScope::const_iterator E) {
1037 for (LocalScope::const_iterator I = B; I != E; ++I)
1752 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
1757 LocalScope::const_iterator BeginScopePos = ScopePos;
1879 addAutomaticObjDtors(ScopePos, LocalScope::const_iterator(), R);
1956 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
1963 LocalScope::const_iterator LoopBeginScopePos = ScopePos;
1967 LocalScope::const_iterator ContinueScopePos = ScopePos;
2300 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2304 LocalScope::const_iterator LoopBeginScopePos = ScopePos;
2629 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2634 LocalScope::const_iterator SwitchBeginScopePos = ScopePos;
2913 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2918 LocalScope::const_iterator BeginScopePos = ScopePos;
2965 SaveAndRestore<LocalScope::const_iterator> save_scope_pos(ScopePos);
2974 LocalScope::const_iterator ContinueScopePos = ScopePos;