Lines Matching refs:Scopes

71   SmallVector<GotoScope, 48> Scopes;  member in __anon116d3ae30111::JumpScopeChecker
109 Scopes.push_back(GotoScope(~0U, ~0U, ~0U, SourceLocation())); in JumpScopeChecker()
129 assert(Scopes[B].ParentScope < B); in GetDeepestCommonScope()
130 B = Scopes[B].ParentScope; in GetDeepestCommonScope()
132 assert(Scopes[A].ParentScope < A); in GetDeepestCommonScope()
133 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()
385 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
386 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
392 NewParentScope = Scopes.size(); in BuildScopeInformation()
393 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
396 NewParentScope = Scopes.size(); in BuildScopeInformation()
397 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc())); in BuildScopeInformation()
406 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
407 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
418 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
419 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
431 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
432 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
442 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
443 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
449 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
450 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
478 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
479 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
492 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
493 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
503 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
504 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
514 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
515 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
535 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
536 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
549 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
550 Scopes.push_back(GotoScope(ParentScope, in BuildScopeInformation()
585 Scopes.push_back(GotoScope(ParentScope, 0, in BuildScopeInformation()
588 origParentScope = Scopes.size()-1; in BuildScopeInformation()
610 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
612 Scopes.push_back(GotoScope( in BuildScopeInformation()
622 unsigned NewParentScope = Scopes.size(); in BuildScopeInformation()
623 Scopes.emplace_back(ParentScope, in BuildScopeInformation()
792 llvm::BitVector Reachable(Scopes.size(), false); in VerifyIndirectJumps()
807 if (Scopes[Min].InDiag) break; in VerifyIndirectJumps()
809 Min = Scopes[Min].ParentScope; in VerifyIndirectJumps()
826 for (unsigned S = JumpScope; S != Scope; S = Scopes[S].ParentScope) in VerifyIndirectJumps()
837 if (Scopes[Scope].OutDiag) break; in VerifyIndirectJumps()
839 Scope = Scopes[Scope].ParentScope; in VerifyIndirectJumps()
883 if (Scopes[ToScopes[I]].InDiag) in NoteJumpIntoScopes()
884 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag); in NoteJumpIntoScopes()
898 for (unsigned I = JumpScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
899 if (Scopes[I].OutDiag) { in DiagnoseIndirectOrAsmJump()
901 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag); in DiagnoseIndirectOrAsmJump()
907 for (unsigned I = TargetScope; I != Common; I = Scopes[I].ParentScope) in DiagnoseIndirectOrAsmJump()
908 if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in DiagnoseIndirectOrAsmJump()
910 else if (Scopes[I].InDiag) { in DiagnoseIndirectOrAsmJump()
912 S.Diag(Scopes[I].Loc, Scopes[I].InDiag); in DiagnoseIndirectOrAsmJump()
947 for (unsigned I = FromScope; I > ToScope; I = Scopes[I].ParentScope) { in CheckJump()
948 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) { in CheckJump()
951 } else if (Scopes[I].InDiag == in CheckJump()
956 } else if (Scopes[I].InDiag == in CheckJump()
959 S.Diag(Scopes[I].Loc, diag::note_acc_branch_out_of_compute_construct); in CheckJump()
974 for (unsigned I = ToScope; I != CommonScope; I = Scopes[I].ParentScope) { in CheckJump()
976 IsMicrosoftJumpWarning(JumpDiagError, Scopes[I].InDiag)) in CheckJump()
978 else if (IsCXX98CompatWarning(S, Scopes[I].InDiag)) in CheckJump()
980 else if (Scopes[I].InDiag) in CheckJump()
1017 for (unsigned I = LabelAndGotoScopes[AS]; I; I = Scopes[I].ParentScope) { in VerifyMustTailStmts()
1018 if (Scopes[I].OutDiag) { in VerifyMustTailStmts()
1020 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag); in VerifyMustTailStmts()