• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching defs:ParentScope

44     /// ParentScope - The index in ScopeMap of the parent scope.  This is 0 for
46 unsigned ParentScope;
61 : ParentScope(parentScope), InDiag(InDiag), OutDiag(OutDiag), Loc(L) {}
75 void BuildScopeInformation(Decl *D, unsigned &ParentScope);
77 unsigned &ParentScope);
119 assert(Scopes[B].ParentScope < B);
120 B = Scopes[B].ParentScope;
122 assert(Scopes[A].ParentScope < A);
123 A = Scopes[A].ParentScope;
222 void JumpScopeChecker::BuildScopeInformation(Decl *D, unsigned &ParentScope) {
226 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
228 ParentScope = Scopes.size()-1;
235 BuildScopeInformation(Init, ParentScope);
241 unsigned &ParentScope) {
273 Scopes.push_back(GotoScope(ParentScope,
275 ParentScope = Scopes.size()-1;
289 unsigned &ParentScope = ((isa<Expr>(S) && !isa<StmtExpr>(S))
294 // If we found a label, remember that it is in ParentScope scope.
304 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc()));
316 LabelAndGotoScopes[S] = ParentScope;
321 LabelAndGotoScopes[S] = ParentScope;
329 BuildScopeInformation(Init, ParentScope);
333 BuildScopeInformation(Var, ParentScope);
341 LabelAndGotoScopes[S] = ParentScope;
350 LabelAndGotoScopes[S] = ParentScope;
366 BuildScopeInformation(Var, ParentScope);
370 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
375 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
379 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
389 Scopes.push_back(GotoScope(ParentScope,
401 Scopes.push_back(GotoScope(ParentScope,
414 Scopes.push_back(GotoScope(ParentScope,
425 Scopes.push_back(GotoScope(ParentScope,
432 Scopes.push_back(GotoScope(ParentScope,
460 Scopes.push_back(GotoScope(ParentScope,
472 Scopes.push_back(GotoScope(ParentScope,
483 Scopes.push_back(GotoScope(ParentScope,
499 BuildScopeInformation(AS->getSynchExpr(), ParentScope);
504 Scopes.push_back(GotoScope(ParentScope,
518 Scopes.push_back(GotoScope(ParentScope,
552 Scopes.push_back(GotoScope(ParentScope, 0,
564 LabelAndGotoScopes[S] = ParentScope;
591 LabelAndGotoScopes[SubStmt] = ParentScope;
596 BuildScopeInformation(SubStmt, ParentScope);
747 Min = Scopes[Min].ParentScope;
766 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
779 Scope = Scopes[Scope].ParentScope;
838 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
847 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
887 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) {
904 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {