Lines Matching refs:diag

149       InDiag = diag::note_protected_by_vla;  in GetDiagForGotoScopeDecl()
152 return ScopePair(diag::note_protected_by___block, in GetDiagForGotoScopeDecl()
153 diag::note_exits___block); in GetDiagForGotoScopeDecl()
156 return ScopePair(diag::note_protected_by_cleanup, in GetDiagForGotoScopeDecl()
157 diag::note_exits_cleanup); in GetDiagForGotoScopeDecl()
162 return ScopePair(diag::note_protected_by_objc_strong_init, in GetDiagForGotoScopeDecl()
163 diag::note_exits_objc_strong); in GetDiagForGotoScopeDecl()
166 return ScopePair(diag::note_protected_by_objc_weak_init, in GetDiagForGotoScopeDecl()
167 diag::note_exits_objc_weak); in GetDiagForGotoScopeDecl()
170 return ScopePair(diag::note_protected_by_non_trivial_c_struct_init, in GetDiagForGotoScopeDecl()
171 diag::note_exits_dtor); in GetDiagForGotoScopeDecl()
174 OutDiag = diag::note_exits_dtor; in GetDiagForGotoScopeDecl()
199 InDiag = diag::note_protected_by_variable_init; in GetDiagForGotoScopeDecl()
209 InDiag = diag::note_protected_by_variable_nontriv_destructor; in GetDiagForGotoScopeDecl()
211 InDiag = diag::note_protected_by_variable_non_pod; in GetDiagForGotoScopeDecl()
224 ? diag::note_protected_by_vla_typedef in GetDiagForGotoScopeDecl()
225 : diag::note_protected_by_vla_type_alias, in GetDiagForGotoScopeDecl()
263 Diags = ScopePair(diag::note_enters_block_captures_cxx_obj, in BuildScopeInformation()
264 diag::note_exits_block_captures_cxx_obj); in BuildScopeInformation()
267 Diags = ScopePair(diag::note_enters_block_captures_strong, in BuildScopeInformation()
268 diag::note_exits_block_captures_strong); in BuildScopeInformation()
271 Diags = ScopePair(diag::note_enters_block_captures_weak, in BuildScopeInformation()
272 diag::note_exits_block_captures_weak); in BuildScopeInformation()
275 Diags = ScopePair(diag::note_enters_block_captures_non_trivial_c_struct, in BuildScopeInformation()
276 diag::note_exits_block_captures_non_trivial_c_struct); in BuildScopeInformation()
294 unsigned InDiag = diag::note_enters_compound_literal_scope; in BuildScopeInformation()
295 unsigned OutDiag = diag::note_exits_compound_literal_scope; in BuildScopeInformation()
323 unsigned Diag = diag::note_protected_by_objc_fast_enumeration; in BuildScopeInformation()
375 unsigned Diag = diag::note_protected_by_if_available; in BuildScopeInformation()
377 Diag = diag::note_protected_by_constexpr_if; in BuildScopeInformation()
379 Diag = diag::note_protected_by_consteval_if; in BuildScopeInformation()
408 diag::note_protected_by_cxx_try, in BuildScopeInformation()
409 diag::note_exits_cxx_try, in BuildScopeInformation()
420 diag::note_protected_by_cxx_catch, in BuildScopeInformation()
421 diag::note_exits_cxx_catch, in BuildScopeInformation()
433 diag::note_protected_by_seh_try, in BuildScopeInformation()
434 diag::note_exits_seh_try, in BuildScopeInformation()
444 diag::note_protected_by_seh_except, in BuildScopeInformation()
445 diag::note_exits_seh_except, in BuildScopeInformation()
451 diag::note_protected_by_seh_finally, in BuildScopeInformation()
452 diag::note_exits_seh_finally, in BuildScopeInformation()
480 diag::note_enters_statement_expression, in BuildScopeInformation()
494 diag::note_protected_by_objc_try, in BuildScopeInformation()
495 diag::note_exits_objc_try, in BuildScopeInformation()
505 diag::note_protected_by_objc_catch, in BuildScopeInformation()
506 diag::note_exits_objc_catch, in BuildScopeInformation()
516 diag::note_protected_by_objc_finally, in BuildScopeInformation()
517 diag::note_exits_objc_finally, in BuildScopeInformation()
537 diag::note_protected_by_objc_synchronized, in BuildScopeInformation()
538 diag::note_exits_objc_synchronized, in BuildScopeInformation()
551 diag::note_protected_by_objc_autoreleasepool, in BuildScopeInformation()
552 diag::note_exits_objc_autoreleasepool, in BuildScopeInformation()
586 diag::note_exits_temporary_dtor, in BuildScopeInformation()
613 ParentScope, diag::note_acc_branch_into_compute_construct, in BuildScopeInformation()
614 diag::note_acc_branch_out_of_compute_construct, CC->getBeginLoc())); in BuildScopeInformation()
624 diag::note_omp_protected_structured_block, in BuildScopeInformation()
625 diag::note_omp_exits_structured_block, in BuildScopeInformation()
674 diag::err_goto_into_protected_scope, in VerifyJumps()
675 diag::ext_goto_into_protected_scope, in VerifyJumps()
676 diag::warn_cxx98_compat_goto_into_protected_scope); in VerifyJumps()
702 diag::err_goto_into_protected_scope, in VerifyJumps()
703 diag::ext_goto_into_protected_scope, in VerifyJumps()
704 diag::warn_cxx98_compat_goto_into_protected_scope); in VerifyJumps()
720 CheckJump(SS, SC, Loc, diag::err_switch_into_protected_scope, 0, in VerifyJumps()
721 diag::warn_cxx98_compat_switch_into_protected_scope); in VerifyJumps()
750 diag::err_indirect_goto_without_addrlabel); in VerifyIndirectJumps()
853 return (JumpDiag == diag::err_goto_into_protected_scope && in IsMicrosoftJumpWarning()
854 (InDiagNote == diag::note_protected_by_variable_init || in IsMicrosoftJumpWarning()
855 InDiagNote == diag::note_protected_by_variable_nontriv_destructor)); in IsMicrosoftJumpWarning()
862 InDiagNote == diag::note_protected_by_variable_non_pod; in IsCXX98CompatWarning()
871 S.Diag(Jump->getBeginLoc(), diag::err_indirect_goto_in_protected_scope) in DiagnoseIndirectOrAsmJumpStmt()
873 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJumpStmt()
919 diag::warn_cxx98_compat_indirect_goto_in_protected_scope) in DiagnoseIndirectOrAsmJump()
921 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target) in DiagnoseIndirectOrAsmJump()
948 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) { in CheckJump()
949 S.Diag(From->getBeginLoc(), diag::warn_jump_out_of_seh_finally); in CheckJump()
952 diag::note_omp_protected_structured_block) { in CheckJump()
953 S.Diag(From->getBeginLoc(), diag::err_goto_into_protected_scope); in CheckJump()
954 S.Diag(To->getBeginLoc(), diag::note_omp_exits_structured_block); in CheckJump()
957 diag::note_acc_branch_into_compute_construct) { in CheckJump()
958 S.Diag(From->getBeginLoc(), diag::err_goto_into_protected_scope); in CheckJump()
959 S.Diag(Scopes[I].Loc, diag::note_acc_branch_out_of_compute_construct); in CheckJump()
1008 S.Diag(GS->getGotoLoc(), diag::err_goto_ms_asm_label) in CheckGotoStmt()
1010 S.Diag(GS->getLabel()->getLocation(), diag::note_goto_ms_asm_label) in CheckGotoStmt()
1019 S.Diag(AS->getBeginLoc(), diag::err_musttail_scope); in VerifyMustTailStmts()