Home | History | Annotate | Download | only in Sema

Lines Matching refs:diag

73       unsigned diag = diag::warn_unreachable;
76 diag = diag::warn_unreachable_break;
79 diag = diag::warn_unreachable_return;
82 diag = diag::warn_unreachable_loop_increment;
88 S.Diag(L, diag) << R1 << R2;
95 S.Diag(Open, diag::note_unreachable_silence)
146 S.Diag(B->getExprLoc(), diag::warn_tautological_overlap_comparison)
155 S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_always)
259 S.Diag(Body->getLocStart(), diag::warn_infinite_recursive_function);
417 diag::warn_falloff_noreturn_function;
419 diag::warn_maybe_falloff_nonvoid_function;
421 diag::warn_falloff_noreturn_function;
423 diag::warn_falloff_nonvoid_function;
438 diag::warn_suggest_noreturn_function;
449 diag::err_noreturn_block_has_return_expr;
451 diag::err_maybe_falloff_nonvoid_block;
453 diag::err_noreturn_block_has_return_expr;
455 diag::err_falloff_nonvoid_block;
464 diag::err_noreturn_lambda_has_return_expr;
466 diag::warn_maybe_falloff_nonvoid_lambda;
468 diag::err_noreturn_lambda_has_return_expr;
470 diag
480 D.isIgnored(diag::warn_maybe_falloff_nonvoid_function,
483 D.isIgnored(diag::warn_noreturn_function_has_return_expr,
486 D.isIgnored(diag::warn_suggest_noreturn_block, FuncLoc));
541 S.Diag(Compound->getRBracLoc(),
544 S.Diag(Compound->getRBracLoc(),
549 S.Diag(Compound->getRBracLoc(),
552 S.Diag(Compound->getRBracLoc(),
558 S.Diag(Compound->getLBracLoc(), CD.diag_NeverFallThroughOrReturn)
561 S.Diag(Compound->getLBracLoc(), CD.diag_NeverFallThroughOrReturn)
564 S.Diag(Compound->getLBracLoc(), CD.diag_NeverFallThroughOrReturn);
614 S.Diag(VD->getLocation(), diag::note_block_var_fixit_add_initialization)
635 S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD->getDeclName()
675 S.Diag(Use.getUser()->getLocStart(), diag::warn_uninit_var)
682 S.Diag(VD->getLocation(), diag::warn_sometimes_uninit_var)
687 S.Diag(Use.getUser()->getLocStart(), diag::note_uninit_var_use)
818 S.Diag(Range.getBegin(), diag::warn_sometimes_uninit_var)
821 S.Diag(User->getLocStart(), diag::note_uninit_var_use)
824 S.Diag(Fixit1.RemoveRange.getBegin(), diag::note_uninit_fixit_remove_cond)
831 S.Diag(Use.getUser()->getLocStart(), diag::warn_maybe_uninit_var)
864 S.Diag(DRE->getLocStart(),
865 diag::warn_uninit_self_reference_in_init)
875 S.Diag(BE->getLocStart(),
876 diag::warn_uninit_byref_blockvar_captured_by_block)
886 S.Diag(VD->getLocStart(), diag::note_uninit_var_def)
972 S.Diag(AS->getLocStart(),
973 diag::warn_fallthrough_attr_unreachable);
1110 S.Diag(Label->getLocStart(),
1111 PerFunction ? diag::warn_unannotated_fallthrough_per_function
1112 : diag::warn_unannotated_fallthrough);
1138 S.Diag(L, diag::note_insert_fallthrough_fixit) <<
1143 S.Diag(L, diag::note_insert_break_fixit) <<
1149 S.Diag(F->getLocStart(), diag::warn_fallthrough_attr_invalid_placement);
1287 DiagKind = diag::warn_arc_repeated_use_of_weak;
1289 DiagKind = diag::warn_arc_possible_repeated_use_of_weak;
1314 S.Diag(FirstRead->getLocStart(), DiagKind)
1322 S.Diag(Use.getUseExpr()->getLocStart(),
1323 diag::note_arc_weak_also_accessed_here)
1475 for (const auto &Diag : Warnings) {
1476 S.Diag(Diag.first.first, Diag.first.second);
1477 for (const auto &Note : Diag.second)
1478 S.Diag(Note.first, Note.second);
1483 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_cannot_resolve_lock)
1489 warnLockMismatch(diag::warn_unlock_but_no_lock, Kind, LockName, Loc);
1496 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_unlock_kind_mismatch)
1502 warnLockMismatch(diag::warn_double_lock, Kind, LockName, Loc);
1512 DiagID = diag::warn_lock_some_predecessors;
1515 DiagID = diag::warn_expecting_lock_held_on_loop;
1518 DiagID = diag::warn_no_unlock;
1521 DiagID = diag::warn_expecting_locked;
1530 PartialDiagnosticAt Note(LocLocked, S.PDiag(diag::note_locked_here)
1542 S.PDiag(diag::warn_lock_exclusive_and_shared)
1544 PartialDiagnosticAt Note(Loc2, S.PDiag(diag::note_lock_exclusive_and_shared)
1555 diag::warn_variable_requires_any_lock:
1556 diag::warn_var_deref_requires_any_lock;
1570 DiagID = diag::warn_variable_requires_lock_precise;
1573 DiagID = diag::warn_var_deref_requires_lock_precise;
1576 DiagID = diag::warn_fun_requires_lock_precise;
1582 PartialDiagnosticAt Note(Loc, S.PDiag(diag::note_found_mutex_near_match)
1588 DiagID = diag::warn_variable_requires_lock;
1591 DiagID = diag::warn_var_deref_requires_lock;
1594 DiagID = diag::warn_fun_requires_lock;
1606 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_fun_excludes_mutex)
1633 for (const auto &Diag : Warnings) {
1634 S.Diag(Diag.first.first, Diag.first.second);
1635 for (const auto &Note : Diag.second)
1636 S.Diag(Note.first, Note.second);
1642 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_loop_state_mismatch) <<
1654 diag::warn_param_return_typestate_mismatch) << VariableName <<
1664 diag::warn_param_typestate_mismatch) << ExpectedState << ObservedState);
1672 diag::warn_return_typestate_for_unconsumable_type) << TypeName);
1681 diag::warn_return_typestate_mismatch) << ExpectedState << ObservedState);
1690 diag::warn_use_of_temp_in_invalid_state) << MethodName << State);
1698 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_use_in_invalid_state) <<
1718 static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) {
1719 return (unsigned)!D.isIgnored(diag, SourceLocation());
1734 using namespace diag;
1752 S.Diag(D.Loc, D.PD);
1824 if (!Diags.isIgnored(diag::warn_tautological_overlap_comparison,
1854 S.Diag(D.Loc, D.PD);
1860 S.Diag(D.Loc, D.PD);
1900 if (!Diags.isIgnored(diag::warn_thread_safety_beta, D->getLocStart()))
1914 if (!Diags.isIgnored(diag::warn_uninit_var, D->getLocStart()) ||
1915 !Diags.isIgnored(diag::warn_sometimes_uninit_var, D->getLocStart()) ||
1916 !Diags.isIgnored(diag::warn_maybe_uninit_var, D->getLocStart())) {
1939 !Diags.isIgnored(diag::warn_unannotated_fallthrough, D->getLocStart());
1941 diag::warn_unannotated_fallthrough_per_function, D->getLocStart());
1947 !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, D->getLocStart()))
1952 if (!Diags.isIgnored(diag::warn_infinite_recursive_function,
1961 if (!Diags.isIgnored(diag::warn_tautological_overlap_comparison,