Lines Matching defs:Scopes

65   SmallVector<GotoScope, 48> Scopes;
98 Scopes.push_back(GotoScope(~0U, ~0U, ~0U, SourceLocation()));
117 assert(Scopes[B].ParentScope < B);
118 B = Scopes[B].ParentScope;
120 assert(Scopes[A].ParentScope < A);
121 A = Scopes[A].ParentScope;
220 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second,
222 ParentScope = Scopes.size()-1;
263 Scopes.push_back(GotoScope(ParentScope,
265 ParentScope = Scopes.size()-1;
324 Scopes.push_back(GotoScope(ParentScope,
329 BuildScopeInformation(TryBlock, (newParentScope = Scopes.size()-1));
334 Scopes.push_back(GotoScope(ParentScope,
339 (newParentScope = Scopes.size()-1));
347 Scopes.push_back(GotoScope(ParentScope,
352 BuildScopeInformation(TryBlock, (newParentScope = Scopes.size()-1));
356 Scopes.push_back(GotoScope(ParentScope,
361 (newParentScope = Scopes.size()-1));
363 Scopes.push_back(GotoScope(ParentScope,
368 (newParentScope = Scopes.size()-1));
418 Scopes.push_back(GotoScope(ParentScope,
423 BuildScopeInformation(TryPart, (newParentScope = Scopes.size()-1));
428 Scopes.push_back(GotoScope(ParentScope,
434 (newParentScope = Scopes.size()-1));
439 Scopes.push_back(GotoScope(ParentScope,
443 BuildScopeInformation(AF, (newParentScope = Scopes.size()-1));
460 Scopes.push_back(GotoScope(ParentScope,
465 (newParentScope = Scopes.size()-1));
474 Scopes.push_back(GotoScope(ParentScope,
479 (newParentScope = Scopes.size() - 1));
507 Scopes.push_back(GotoScope(ParentScope, 0,
510 ParentScope = Scopes.size()-1;
642 llvm::BitVector Reachable(Scopes.size(), false);
661 if (Scopes[Min].InDiag) break;
663 Min = Scopes[Min].ParentScope;
674 // to O(JumpScopes.size() / Scopes.size()): we only iterate
682 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope)
693 if (Scopes[Scope].OutDiag) break;
695 Scope = Scopes[Scope].ParentScope;
736 if (Scopes[ToScopes[I]].InDiag)
737 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag);
752 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope)
753 if (Scopes[I].OutDiag) {
755 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag);
761 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope)
762 if (IsCXX98CompatWarning(S, Scopes[I].InDiag))
764 else if (Scopes[I].InDiag) {
766 S.Diag(Scopes[I].Loc, Scopes[I].InDiag);
798 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) {
799 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) {
815 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) {
817 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag))
819 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag))
821 else if (Scopes[I].InDiag)