Lines Matching defs:ParentScope

41     /// ParentScope - The index in ScopeMap of the parent scope.  This is 0 for
43 unsigned ParentScope;
58 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {}
70 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
72 unsigned &ParentScope);
110 assert(Scopes[B].ParentScope < B);
111 B = Scopes[B].ParentScope;
113 assert(Scopes[A].ParentScope < A);
114 A = Scopes[A].ParentScope;
235 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
239 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
241 ParentScope = Scopes.size()-1;
248 BuildScopeInformation(Init, ParentScope);
254 unsigned &ParentScope) {
282 Scopes.push_back(GotoScope(ParentScope,
284 ParentScope = Scopes.size()-1;
297 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
302 // If we found a label, remember that it is in ParentScope scope.
315 LabelAndGotoScopes[S] = ParentScope;
320 LabelAndGotoScopes[S] = ParentScope;
328 BuildScopeInformation(Var, ParentScope);
336 LabelAndGotoScopes[S] = ParentScope;
343 Scopes.push_back(GotoScope(ParentScope,
353 Scopes.push_back(GotoScope(ParentScope,
390 LabelAndGotoScopes[SubStmt] = ParentScope;
401 BuildScopeInformation(*I, ParentScope);
409 Scopes.push_back(GotoScope(ParentScope,
419 Scopes.push_back(GotoScope(ParentScope,
430 Scopes.push_back(GotoScope(ParentScope,
446 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
450 Scopes.push_back(GotoScope(ParentScope,
463 Scopes.push_back(GotoScope(ParentScope,
480 BuildScopeInformation(variable, BDecl, ParentScope);
486 BuildScopeInformation(SubStmt, ParentScope);
628 Min = Scopes[Min].ParentScope;
647 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
660 Scope = Scopes[Scope].ParentScope;
715 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
724 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
764 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {