Lines Matching refs:ParentScope
47 unsigned ParentScope; member
62 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {} in GotoScope()
74 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
76 unsigned &ParentScope);
116 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
117 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
119 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
120 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
212 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) { in BuildScopeInformation() argument
216 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
218 ParentScope = Scopes.size()-1; in BuildScopeInformation()
225 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
231 unsigned &ParentScope) { in BuildScopeInformation() argument
259 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
261 ParentScope = Scopes.size()-1; in BuildScopeInformation()
274 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S)) in BuildScopeInformation() local
292 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
297 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
305 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
313 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
320 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
330 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
367 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
377 BuildScopeInformation(I, ParentScope); in BuildScopeInformation()
385 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
395 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
406 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
422 BuildScopeInformation(AS->getSynchExpr(), ParentScope); in BuildScopeInformation()
426 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
439 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
455 BuildScopeInformation(variable, BDecl, ParentScope); in BuildScopeInformation()
471 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
474 ParentScope = Scopes.size()-1; in BuildScopeInformation()
480 BuildScopeInformation(SubStmt, ParentScope); in BuildScopeInformation()
623 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
642 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
655 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
712 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
721 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
763 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()