Lines Matching full:parentscope

51     /// ParentScope - The index in ScopeMap of the parent scope.  This is 0 for
53 unsigned ParentScope;
66 GotoScope(unsigned parentScope, unsigned InDiag, unsigned OutDiag,
68 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {}
82 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
84 unsigned &ParentScope);
85 void BuildScopeInformation(CompoundLiteralExpr *CLE, unsigned &ParentScope);
129 assert(Scopes[B].ParentScope < B);
130 B = Scopes[B].ParentScope;
132 assert(Scopes[A].ParentScope < A);
133 A = Scopes[A].ParentScope;
233 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
237 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
239 ParentScope = Scopes.size()-1;
246 BuildScopeInformation(Init, ParentScope);
252 unsigned &ParentScope) {
284 Scopes.push_back(GotoScope(ParentScope,
286 ParentScope = Scopes.size()-1;
293 unsigned &ParentScope) {
296 Scopes.push_back(GotoScope(ParentScope, InDiag, OutDiag, CLE->getExprLoc()));
297 ParentScope = Scopes.size() - 1;
310 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
315 // If we found a label, remember that it is in ParentScope scope.
325 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc()));
339 LabelAndGotoScopes[S] = ParentScope;
347 BuildScopeInformation(Init, ParentScope);
351 BuildScopeInformation(Var, ParentScope);
365 LabelAndGotoScopes[S] = ParentScope;
382 BuildScopeInformation(Var, ParentScope);
386 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
393 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
397 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
407 Scopes.push_back(GotoScope(ParentScope,
419 Scopes.push_back(GotoScope(ParentScope,
432 Scopes.push_back(GotoScope(ParentScope,
443 Scopes.push_back(GotoScope(ParentScope,
450 Scopes.push_back(GotoScope(ParentScope,
479 Scopes.push_back(GotoScope(ParentScope,
493 Scopes.push_back(GotoScope(ParentScope,
504 Scopes.push_back(GotoScope(ParentScope,
515 Scopes.push_back(GotoScope(ParentScope,
531 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
536 Scopes.push_back(GotoScope(ParentScope,
550 Scopes.push_back(GotoScope(ParentScope,
585 Scopes.push_back(GotoScope(ParentScope, 0,
597 LabelAndGotoScopes[S] = ParentScope;
603 LabelAndGotoScopes[AS] = ParentScope;
613 ParentScope, diag::note_acc_branch_into_compute_construct,
623 ParentScope, diag::note_acc_branch_into_compute_construct,
633 Scopes.emplace_back(ParentScope,
664 LabelAndGotoScopes[SubStmt] = ParentScope;
669 BuildScopeInformation(SubStmt, ParentScope);
818 Min = Scopes[Min].ParentScope;
835 for (unsigned S = JumpScope; S != Scope; S = Scopes[S].ParentScope)
848 Scope = Scopes[Scope].ParentScope;
907 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
916 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
956 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) {
983 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {
1026 for (unsigned I = LabelAndGotoScopes[AS]; I; I = Scopes[I].ParentScope) {