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);
117 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
118 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
120 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
121 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
216 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) { in BuildScopeInformation() argument
220 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
222 ParentScope = Scopes.size()-1; in BuildScopeInformation()
229 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
235 unsigned &ParentScope) { in BuildScopeInformation() argument
263 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
265 ParentScope = Scopes.size()-1; in BuildScopeInformation()
278 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S)) in BuildScopeInformation() local
296 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
301 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
309 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
317 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
324 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
334 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
347 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
356 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
363 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
400 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
410 BuildScopeInformation(I, ParentScope); in BuildScopeInformation()
418 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
428 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
439 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
456 BuildScopeInformation(AS->getSynchExpr(), ParentScope); in BuildScopeInformation()
460 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
474 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
491 BuildScopeInformation(variable, BDecl, ParentScope); in BuildScopeInformation()
507 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
510 ParentScope = Scopes.size()-1; in BuildScopeInformation()
516 BuildScopeInformation(SubStmt, ParentScope); in BuildScopeInformation()
663 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
682 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
695 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
752 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
761 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
798 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
815 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()