Home | History | Annotate | Download | only in Sema

Lines Matching refs:diag

150       InDiag = diag::note_protected_by_vla;
153 return ScopePair(diag::note_protected_by___block,
154 diag::note_exits___block);
157 return ScopePair(diag::note_protected_by_cleanup,
158 diag::note_exits_cleanup);
163 return ScopePair(diag::note_protected_by_objc_strong_init,
164 diag::note_exits_objc_strong);
167 return ScopePair(diag::note_protected_by_objc_weak_init,
168 diag::note_exits_objc_weak);
171 return ScopePair(diag::note_protected_by_non_trivial_c_struct_init,
172 diag::note_exits_dtor);
175 OutDiag = diag::note_exits_dtor;
199 InDiag = diag::note_protected_by_variable_init;
209 InDiag = diag::note_protected_by_variable_nontriv_destructor;
211 InDiag = diag::note_protected_by_variable_non_pod;
224 ? diag::note_protected_by_vla_typedef
225 : diag::note_protected_by_vla_type_alias,
263 Diags = ScopePair(diag::note_enters_block_captures_cxx_obj,
264 diag::note_exits_block_captures_cxx_obj);
267 Diags = ScopePair(diag::note_enters_block_captures_strong,
268 diag::note_exits_block_captures_strong);
271 Diags = ScopePair(diag::note_enters_block_captures_weak,
272 diag::note_exits_block_captures_weak);
275 Diags = ScopePair(diag::note_enters_block_captures_non_trivial_c_struct,
276 diag::note_exits_block_captures_non_trivial_c_struct);
294 unsigned InDiag = diag::note_enters_compound_literal_scope;
295 unsigned OutDiag = diag::note_exits_compound_literal_scope;
323 unsigned Diag = diag::note_protected_by_objc_fast_enumeration;
325 Scopes.push_back(GotoScope(ParentScope, Diag, 0, S->getBeginLoc()));
383 unsigned Diag = IS->isConstexpr() ? diag::note_protected_by_constexpr_if
384 : diag::note_protected_by_if_available;
391 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
396 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
400 Scopes.push_back(GotoScope(ParentScope, Diag, 0, IS->getBeginLoc()));
411 diag::note_protected_by_cxx_try,
412 diag::note_exits_cxx_try,
423 diag::note_protected_by_cxx_catch,
424 diag::note_exits_cxx_catch,
436 diag::note_protected_by_seh_try,
437 diag::note_exits_seh_try,
447 diag::note_protected_by_seh_except,
448 diag::note_exits_seh_except,
454 diag::note_protected_by_seh_finally,
455 diag::note_exits_seh_finally,
482 diag::note_protected_by_objc_try,
483 diag::note_exits_objc_try,
494 diag::note_protected_by_objc_catch,
495 diag::note_exits_objc_catch,
505 diag::note_protected_by_objc_finally,
506 diag::note_exits_objc_finally,
526 diag::note_protected_by_objc_synchronized,
527 diag::note_exits_objc_synchronized,
540 diag::note_protected_by_objc_autoreleasepool,
541 diag::note_exits_objc_autoreleasepool,
578 diag::note_exits_temporary_dtor,
606 diag::note_omp_protected_structured_block,
607 diag::note_omp_exits_structured_block,
656 diag::err_goto_into_protected_scope,
657 diag::ext_goto_into_protected_scope,
658 diag::warn_cxx98_compat_goto_into_protected_scope);
668 diag::err_goto_into_protected_scope,
669 diag::ext_goto_into_protected_scope,
670 diag::warn_cxx98_compat_goto_into_protected_scope);
686 CheckJump(SS, SC, Loc, diag::err_switch_into_protected_scope, 0,
687 diag::warn_cxx98_compat_switch_into_protected_scope);
720 S.Diag(GotoJumps[0]->getBeginLoc(),
721 diag::err_indirect_goto_without_addrlabel);
838 return (JumpDiag == diag::err_goto_into_protected_scope &&
839 (InDiagNote == diag::note_protected_by_variable_init ||
840 InDiagNote == diag::note_protected_by_variable_nontriv_destructor));
847 InDiagNote == diag::note_protected_by_variable_non_pod;
856 S.Diag(Jump->getBeginLoc(), diag::err_indirect_goto_in_protected_scope)
858 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target)
869 S.Diag(Scopes[ToScopes[I]].Loc, Scopes[ToScopes[I]].InDiag);
886 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag);
897 S.Diag(Scopes[I].Loc, Scopes[I].InDiag);
903 S.Diag(Jump->getBeginLoc(),
904 diag::warn_cxx98_compat_indirect_goto_in_protected_scope)
906 S.Diag(Target->getStmt()->getIdentLoc(), diag::note_indirect_goto_target)
933 if (Scopes[I].InDiag == diag::note_protected_by_seh_finally) {
934 S.Diag(From->getBeginLoc(), diag::warn_jump_out_of_seh_finally);
937 if (Scopes[I].InDiag == diag::note_omp_protected_structured_block) {
938 S.Diag(From->getBeginLoc(), diag::err_goto_into_protected_scope);
939 S.Diag(To->getBeginLoc(), diag::note_omp_exits_structured_block);
966 S.Diag(DiagLoc, JumpDiagWarning);
975 S.Diag(DiagLoc, JumpDiagError);
981 S.Diag(DiagLoc, JumpDiagCXX98Compat);
988 S.Diag(GS->getGotoLoc(), diag::err_goto_ms_asm_label)
990 S.Diag(GS->getLabel()->getLocation(), diag::note_goto_ms_asm_label)
999 S.Diag(AS->getBeginLoc(), diag::err_musttail_scope);
1000 S.Diag(Scopes[I].Loc, Scopes[I].OutDiag);