Lines Matching refs:ParentScope

45     /// ParentScope - The index in ScopeMap of the parent scope.  This is 0 for
47 unsigned ParentScope;
62 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {}
74 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
76 unsigned &ParentScope);
117 assert(Scopes[B].ParentScope < B);
118 B = Scopes[B].ParentScope;
120 assert(Scopes[A].ParentScope < A);
121 A = Scopes[A].ParentScope;
216 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
220 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
222 ParentScope = Scopes.size()-1;
229 BuildScopeInformation(Init, ParentScope);
235 unsigned &ParentScope) {
263 Scopes.push_back(GotoScope(ParentScope,
265 ParentScope = Scopes.size()-1;
278 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
283 // If we found a label, remember that it is in ParentScope scope.
296 LabelAndGotoScopes[S] = ParentScope;
301 LabelAndGotoScopes[S] = ParentScope;
309 BuildScopeInformation(Var, ParentScope);
317 LabelAndGotoScopes[S] = ParentScope;
324 Scopes.push_back(GotoScope(ParentScope,
334 Scopes.push_back(GotoScope(ParentScope,
347 Scopes.push_back(GotoScope(ParentScope,
356 Scopes.push_back(GotoScope(ParentScope,
363 Scopes.push_back(GotoScope(ParentScope,
400 LabelAndGotoScopes[SubStmt] = ParentScope;
410 BuildScopeInformation(I, ParentScope);
418 Scopes.push_back(GotoScope(ParentScope,
428 Scopes.push_back(GotoScope(ParentScope,
439 Scopes.push_back(GotoScope(ParentScope,
456 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
460 Scopes.push_back(GotoScope(ParentScope,
474 Scopes.push_back(GotoScope(ParentScope,
491 BuildScopeInformation(variable, BDecl, ParentScope);
507 Scopes.push_back(GotoScope(ParentScope, 0,
510 ParentScope = Scopes.size()-1;
516 BuildScopeInformation(SubStmt, ParentScope);
663 Min = Scopes[Min].ParentScope;
682 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
695 Scope = Scopes[Scope].ParentScope;
752 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
761 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
798 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) {
815 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {