Lines Matching defs: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);
116 assert(Scopes[B].ParentScope < B);
117 B = Scopes[B].ParentScope;
119 assert(Scopes[A].ParentScope < A);
120 A = Scopes[A].ParentScope;
212 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
216 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
218 ParentScope = Scopes.size()-1;
225 BuildScopeInformation(Init, ParentScope);
231 unsigned &ParentScope) {
259 Scopes.push_back(GotoScope(ParentScope,
261 ParentScope = Scopes.size()-1;
274 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
279 // If we found a label, remember that it is in ParentScope scope.
292 LabelAndGotoScopes[S] = ParentScope;
297 LabelAndGotoScopes[S] = ParentScope;
305 BuildScopeInformation(Var, ParentScope);
313 LabelAndGotoScopes[S] = ParentScope;
320 Scopes.push_back(GotoScope(ParentScope,
330 Scopes.push_back(GotoScope(ParentScope,
367 LabelAndGotoScopes[SubStmt] = ParentScope;
377 BuildScopeInformation(I, ParentScope);
385 Scopes.push_back(GotoScope(ParentScope,
395 Scopes.push_back(GotoScope(ParentScope,
406 Scopes.push_back(GotoScope(ParentScope,
422 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
426 Scopes.push_back(GotoScope(ParentScope,
439 Scopes.push_back(GotoScope(ParentScope,
455 BuildScopeInformation(variable, BDecl, ParentScope);
471 Scopes.push_back(GotoScope(ParentScope, 0,
474 ParentScope = Scopes.size()-1;
480 BuildScopeInformation(SubStmt, ParentScope);
623 Min = Scopes[Min].ParentScope;
642 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
655 Scope = Scopes[Scope].ParentScope;
712 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
721 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
763 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {