Lines Matching refs:Scopes

70   SmallVector<GotoScope, 48> Scopes;  member in __anonde60005a0111::JumpScopeChecker
109 Scopes.push_back(GotoScope(~0U, ~0U, ~0U, SourceLocation())); in JumpScopeChecker()
130 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
131 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
133 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
134 A = Scopes[A].ParentScope; in GetDeepestCommonScope()
237 Scopes.push_back(GotoScope(ParentScope, Diags.first, Diags.second, in BuildScopeInformation()
239 ParentScope = Scopes.size()-1; in BuildScopeInformation()
284 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
286 ParentScope = Scopes.size()-1; in BuildScopeInformation()
296 Scopes.push_back(GotoScope(ParentScope, InDiag, OutDiag, CLE->getExprLoc())); in BuildScopeInformation()
297 ParentScope = Scopes.size() - 1; in BuildScopeInformation()
324 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
325 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc())); in BuildScopeInformation()
394 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
395 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
401 NewParentScope = Scopes.size(); in BuildScopeInformation()
402 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
405 NewParentScope = Scopes.size(); in BuildScopeInformation()
406 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
415 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
416 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
427 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
428 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
440 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
441 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
451 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
452 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
458 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
459 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
486 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
487 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
497 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
498 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
508 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
509 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
529 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
530 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
543 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
544 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
582 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
585 origParentScope = Scopes.size()-1; in BuildScopeInformation()
609 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
610 Scopes.emplace_back(ParentScope, in BuildScopeInformation()
776 llvm::BitVector Reachable(Scopes.size(), false); in VerifyIndirectOrAsmJumps()
795 if (Scopes[Min].InDiag) break; in VerifyIndirectOrAsmJumps()
797 Min = Scopes[Min].ParentScope; in VerifyIndirectOrAsmJumps()
816 for (unsigned S = I->first; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectOrAsmJumps()
827 if (Scopes[Scope].OutDiag) break; in VerifyIndirectOrAsmJumps()
829 Scope = Scopes[Scope].ParentScope; in VerifyIndirectOrAsmJumps()
873 if (Scopes[ToScopes[I]].InDiag) in NoteJumpIntoScopes()
874 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag); in NoteJumpIntoScopes()
888 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
889 if (Scopes[I].OutDiag) { in DiagnoseIndirectOrAsmJump()
891 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag); in DiagnoseIndirectOrAsmJump()
897 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
898 if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in DiagnoseIndirectOrAsmJump()
900 else if (Scopes[I].InDiag) { in DiagnoseIndirectOrAsmJump()
902 S.Diag(Scopes[I].Loc, Scopes[I].InDiag); in DiagnoseIndirectOrAsmJump()
937 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
938 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) { in CheckJump()
942 if (Scopes[I].InDiag == diag::note_omp_protected_structured_block) { in CheckJump()
959 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()
961 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag)) in CheckJump()
963 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in CheckJump()
965 else if (Scopes[I].InDiag) in CheckJump()
1002 for (unsigned I = LabelAndGotoScopes[AS]; I; I = Scopes[I].ParentScope) { in VerifyMustTailStmts()
1003 if (Scopes[I].OutDiag) { in VerifyMustTailStmts()
1005 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag); in VerifyMustTailStmts()