Lines Matching refs:ParentScope
43 unsigned ParentScope; member
58 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {} in GotoScope()
70 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
72 unsigned &ParentScope);
108 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
109 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
111 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
112 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
219 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) { in BuildScopeInformation() argument
223 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
225 ParentScope = Scopes.size()-1; in BuildScopeInformation()
232 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
238 unsigned &ParentScope) { in BuildScopeInformation() argument
266 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
268 ParentScope = Scopes.size()-1; in BuildScopeInformation()
281 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S)) in BuildScopeInformation() local
299 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
304 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
312 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
320 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
351 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
362 BuildScopeInformation(*I, ParentScope); in BuildScopeInformation()
370 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
380 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
391 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
407 BuildScopeInformation(AS->getSynchExpr(), ParentScope); in BuildScopeInformation()
411 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
423 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
433 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
448 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
461 BuildScopeInformation(variable, BDecl, ParentScope); in BuildScopeInformation()
466 BuildScopeInformation(SubStmt, ParentScope); in BuildScopeInformation()
597 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
616 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
629 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
653 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
658 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
683 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) in CheckJump()