Lines Matching full:parentscope
45 /// ParentScope - The index in ScopeMap of the parent scope. This is 0 for
47 unsigned ParentScope; member
60 GotoScope(unsigned parentScope, unsigned InDiag, unsigned OutDiag, in GotoScope()
62 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {} in GotoScope()
76 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
78 unsigned &ParentScope);
79 void BuildScopeInformation(CompoundLiteralExpr *CLE, unsigned &ParentScope);
121 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
122 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
124 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
125 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
224 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) { in BuildScopeInformation() argument
228 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
230 ParentScope = Scopes.size()-1; in BuildScopeInformation()
237 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
243 unsigned &ParentScope) { in BuildScopeInformation() argument
275 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
277 ParentScope = Scopes.size()-1; in BuildScopeInformation()
284 unsigned &ParentScope) { in BuildScopeInformation() argument
287 Scopes.push_back(GotoScope(ParentScope, InDiag, OutDiag, CLE->getExprLoc())); in BuildScopeInformation()
288 ParentScope = Scopes.size() - 1; in BuildScopeInformation()
301 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S)) in BuildScopeInformation() local
306 // If we found a label, remember that it is in ParentScope scope. in BuildScopeInformation()
316 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc())); in BuildScopeInformation()
328 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
333 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
341 BuildScopeInformation(Init, ParentScope); in BuildScopeInformation()
345 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
353 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
362 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
378 BuildScopeInformation(Var, ParentScope); in BuildScopeInformation()
382 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
387 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
391 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
401 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
413 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
426 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
437 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
444 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
472 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
484 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
495 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
511 BuildScopeInformation(AS->getSynchExpr(), ParentScope); in BuildScopeInformation()
516 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
530 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
568 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
580 LabelAndGotoScopes[S] = ParentScope; in BuildScopeInformation()
587 Scopes.emplace_back(ParentScope, in BuildScopeInformation()
618 LabelAndGotoScopes[SubStmt] = ParentScope; in BuildScopeInformation()
623 BuildScopeInformation(SubStmt, ParentScope); in BuildScopeInformation()
774 Min = Scopes[Min].ParentScope; in VerifyIndirectOrAsmJumps()
793 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectOrAsmJumps()
806 Scope = Scopes[Scope].ParentScope; in VerifyIndirectOrAsmJumps()
865 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
874 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
914 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
936 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()