Lines Matching refs:ParentScope

53     unsigned ParentScope;  member
68 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {} in GotoScope()
82 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
84 unsigned &ParentScope);
85 void BuildScopeInformation(CompoundLiteralExpr *CLE, unsigned &ParentScope);
129 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
130 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
132 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
133 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
233 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) { in BuildScopeInformation() argument
237 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
239 ParentScope = Scopes.size()-1; in BuildScopeInformation()
246 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
252 unsigned &ParentScope) { in BuildScopeInformation() argument
284 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
286 ParentScope = Scopes.size()-1; in BuildScopeInformation()
293 unsigned &ParentScope) { in BuildScopeInformation() argument
296 Scopes.push_back(GotoScope(ParentScope, InDiag, OutDiag, CLE->getExprLoc())); in BuildScopeInformation()
297 ParentScope = Scopes.size() - 1; in BuildScopeInformation()
310 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S)) in BuildScopeInformation() local
325 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc())); in BuildScopeInformation()
339 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
347 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
351 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
365 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
382 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
386 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
393 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
397 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
407 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
419 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
432 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
443 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
450 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
479 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
493 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
504 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
515 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
531 BuildScopeInformation(AS->getSynchExpr(), ParentScope); in BuildScopeInformation()
536 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
550 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
585 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
597 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
603 LabelAndGotoScopes[AS] = ParentScope; in BuildScopeInformation()
613 ParentScope, diag::note_acc_branch_into_compute_construct, in BuildScopeInformation()
623 Scopes.emplace_back(ParentScope, in BuildScopeInformation()
654 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
659 BuildScopeInformation(SubStmt, ParentScope); in BuildScopeInformation()
809 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
826 for (unsigned S = JumpScope; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
839 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
898 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
907 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
947 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
974 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()
1017 for (unsigned I = LabelAndGotoScopes[AS]; I; I = Scopes[I].ParentScope) { in VerifyMustTailStmts()