Home | History | Annotate | Download | only in Sema

Lines Matching refs:ParentScope

41     /// ParentScope - The index in ScopeMap of the parent scope.  This is 0 for
43 unsigned ParentScope;
56 GotoScope(unsigned parentScope, unsigned InDiag, unsigned OutDiag,
58 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {}
70 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
72 unsigned &ParentScope);
110 assert(Scopes[B].ParentScope < B);
111 B = Scopes[B].ParentScope;
113 assert(Scopes[A].ParentScope < A);
114 A = Scopes[A].ParentScope;
220 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
224 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
226 ParentScope = Scopes.size()-1;
233 BuildScopeInformation(Init, ParentScope);
239 unsigned &ParentScope) {
267 Scopes.push_back(GotoScope(ParentScope,
269 ParentScope = Scopes.size()-1;
282 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
287 // If we found a label, remember that it is in ParentScope scope.
300 LabelAndGotoScopes[S] = ParentScope;
305 LabelAndGotoScopes[S] = ParentScope;
313 BuildScopeInformation(Var, ParentScope);
321 LabelAndGotoScopes[S] = ParentScope;
352 LabelAndGotoScopes[SubStmt] = ParentScope;
363 BuildScopeInformation(*I, ParentScope);
371 Scopes.push_back(GotoScope(ParentScope,
381 Scopes.push_back(GotoScope(ParentScope,
392 Scopes.push_back(GotoScope(ParentScope,
408 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
412 Scopes.push_back(GotoScope(ParentScope,
424 Scopes.push_back(GotoScope(ParentScope,
434 Scopes.push_back(GotoScope(ParentScope,
449 Scopes.push_back(GotoScope(ParentScope,
462 BuildScopeInformation(variable, BDecl, ParentScope);
467 BuildScopeInformation(SubStmt, ParentScope);
603 Min = Scopes[Min].ParentScope;
622 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
635 Scope = Scopes[Scope].ParentScope;
690 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
699 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
739 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {