Lines Matching full:parentscope
41 /// ParentScope - The index in ScopeMap of the parent scope. This is 0 for
43 unsigned ParentScope;
56 GotoScope(unsigned parentScope, unsigned InDiag, unsigned OutDiag,
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;
230 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
234 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
236 ParentScope = Scopes.size()-1;
243 BuildScopeInformation(Init, ParentScope);
249 unsigned &ParentScope) {
277 Scopes.push_back(GotoScope(ParentScope,
279 ParentScope = Scopes.size()-1;
292 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
297 // If we found a label, remember that it is in ParentScope scope.
310 LabelAndGotoScopes[S] = ParentScope;
315 LabelAndGotoScopes[S] = ParentScope;
323 BuildScopeInformation(Var, ParentScope);
331 LabelAndGotoScopes[S] = ParentScope;
338 Scopes.push_back(GotoScope(ParentScope,
348 Scopes.push_back(GotoScope(ParentScope,
385 LabelAndGotoScopes[SubStmt] = ParentScope;
396 BuildScopeInformation(*I, ParentScope);
404 Scopes.push_back(GotoScope(ParentScope,
414 Scopes.push_back(GotoScope(ParentScope,
425 ParentScope,
441 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
445 Scopes.push_back(GotoScope(ParentScope,
458 Scopes.push_back(GotoScope(ParentScope,
475 BuildScopeInformation(variable, BDecl, ParentScope);
481 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;
710 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
719 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
759 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {