Lines Matching refs:ParentScope
52 unsigned ParentScope; member
67 : 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);
130 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
131 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
133 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
134 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()
337 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
342 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
350 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
354 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
362 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
371 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
391 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
395 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
402 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
406 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
416 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
428 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
441 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
452 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
459 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
487 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
498 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
509 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
525 BuildScopeInformation(AS->getSynchExpr(), ParentScope); in BuildScopeInformation()
530 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
544 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
582 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
594 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
600 LabelAndGotoScopes[AS] = ParentScope; in BuildScopeInformation()
610 Scopes.emplace_back(ParentScope, in BuildScopeInformation()
641 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
646 BuildScopeInformation(SubStmt, ParentScope); in BuildScopeInformation()
797 Min = Scopes[Min].ParentScope; in VerifyIndirectOrAsmJumps()
816 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectOrAsmJumps()
829 Scope = Scopes[Scope].ParentScope; in VerifyIndirectOrAsmJumps()
888 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
897 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
937 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
959 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()
1002 for (unsigned I = LabelAndGotoScopes[AS]; I; I = Scopes[I].ParentScope) { in VerifyMustTailStmts()