Lines Matching refs:Scopes
65 SmallVector<GotoScope, 48> Scopes; member in __anon6dcd1a920111::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()
224 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
226 ParentScope = Scopes.size()-1; in BuildScopeInformation()
271 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
273 ParentScope = Scopes.size()-1; in BuildScopeInformation()
301 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
302 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc())); in BuildScopeInformation()
355 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
356 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
360 NewParentScope = Scopes.size(); in BuildScopeInformation()
361 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
364 NewParentScope = Scopes.size(); in BuildScopeInformation()
365 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
374 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
375 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
386 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
387 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
399 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
400 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
410 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
411 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
417 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
418 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
445 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
446 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
457 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
458 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
468 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
469 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
489 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
490 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
503 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
504 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
538 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
541 origParentScope = Scopes.size()-1; in BuildScopeInformation()
708 llvm::BitVector Reachable(Scopes.size(), false); in VerifyIndirectJumps()
727 if (Scopes[Min].InDiag) break; in VerifyIndirectJumps()
729 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
748 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
759 if (Scopes[Scope].OutDiag) break; in VerifyIndirectJumps()
761 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
802 if (Scopes[ToScopes[I]].InDiag) in NoteJumpIntoScopes()
803 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag); in NoteJumpIntoScopes()
818 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
819 if (Scopes[I].OutDiag) { in DiagnoseIndirectJump()
821 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag); in DiagnoseIndirectJump()
827 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectJump()
828 if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in DiagnoseIndirectJump()
830 else if (Scopes[I].InDiag) { in DiagnoseIndirectJump()
832 S.Diag(Scopes[I].Loc, Scopes[I].InDiag); in DiagnoseIndirectJump()
864 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
865 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) { in CheckJump()
881 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()
883 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag)) in CheckJump()
885 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in CheckJump()
887 else if (Scopes[I].InDiag) in CheckJump()