Lines Matching refs:Scopes

65   SmallVector<GotoScope, 48> Scopes;  member in __anond99f67050111::JumpScopeChecker
98 Scopes.push_back(GotoScope(~0U, ~0U, ~0U, SourceLocation())); in JumpScopeChecker()
117 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
118 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
120 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
121 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
217 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
219 ParentScope = Scopes.size()-1; in BuildScopeInformation()
260 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
262 ParentScope = Scopes.size()-1; in BuildScopeInformation()
321 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
326 BuildScopeInformation(TryBlock, (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
331 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
336 (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
344 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
349 BuildScopeInformation(TryBlock, (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
353 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
358 (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
360 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
365 (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
416 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
421 BuildScopeInformation(TryPart, (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
426 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
432 (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
437 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
441 BuildScopeInformation(AF, (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
458 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
463 (newParentScope = Scopes.size()-1)); in BuildScopeInformation()
472 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
477 (newParentScope = Scopes.size() - 1)); in BuildScopeInformation()
505 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
508 ParentScope = Scopes.size()-1; in BuildScopeInformation()
640 llvm::BitVector Reachable(Scopes.size(), false); in VerifyIndirectJumps()
659 if (Scopes[Min].InDiag) break; in VerifyIndirectJumps()
661 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
680 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
691 if (Scopes[Scope].OutDiag) break; in VerifyIndirectJumps()
693 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
734 if (Scopes[ToScopes[I]].InDiag) in NoteJumpIntoScopes()
735 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag); in NoteJumpIntoScopes()
750 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
751 if (Scopes[I].OutDiag) { in DiagnoseIndirectJump()
753 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag); in DiagnoseIndirectJump()
759 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
760 if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in DiagnoseIndirectJump()
762 else if (Scopes[I].InDiag) { in DiagnoseIndirectJump()
764 S.Diag(Scopes[I].Loc, Scopes[I].InDiag); in DiagnoseIndirectJump()
796 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
797 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) { in CheckJump()
813 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()
815 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag)) in CheckJump()
817 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in CheckJump()
819 else if (Scopes[I].InDiag) in CheckJump()