Lines Matching refs:diag
81 !S.getDiagnostics().isIgnored(diag::warn_unreachable_fallthrough_attr, in HandleUnreachable()
93 unsigned diag = diag::warn_unreachable; in HandleUnreachable() local
96 diag = diag::warn_unreachable_break; in HandleUnreachable()
99 diag = diag::warn_unreachable_return; in HandleUnreachable()
102 diag = diag::warn_unreachable_loop_increment; in HandleUnreachable()
108 S.Diag(L, diag) << R1 << R2; in HandleUnreachable()
115 S.Diag(Open, diag::note_unreachable_silence) in HandleUnreachable()
166 ? diag::warn_tautological_negation_or_compare in logicAlwaysTrue()
167 : diag::warn_tautological_negation_and_compare; in logicAlwaysTrue()
177 S.Diag(B->getExprLoc(), diag::warn_tautological_overlap_comparison) in compareAlwaysTrue()
187 S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_always) in compareBitwiseEquality()
196 S.Diag(B->getExprLoc(), diag::warn_comparison_bitwise_or) << DiagRange; in compareBitwiseOr()
201 return !Diags.isIgnored(diag::warn_tautological_overlap_comparison, Loc) || in hasActiveDiagnostics()
202 !Diags.isIgnored(diag::warn_comparison_bitwise_or, Loc) || in hasActiveDiagnostics()
203 !Diags.isIgnored(diag::warn_tautological_negation_and_compare, Loc); in hasActiveDiagnostics()
301 S.Diag(Body->getBeginLoc(), diag::warn_infinite_recursive_function); in checkRecursiveFunction()
369 S.Diag(OpLoc, diag::warn_throw_in_noexcept_func) << FD; in EmitDiagForCXXThrowInNonThrowingFunc()
376 S.Diag(FD->getLocation(), diag::note_throw_in_dtor) in EmitDiagForCXXThrowInNonThrowingFunc()
380 S.Diag(FD->getLocation(), diag::note_throw_in_function) in EmitDiagForCXXThrowInNonThrowingFunc()
562 diag::warn_falloff_noreturn_function; in MakeForFunction()
564 diag::warn_maybe_falloff_nonvoid_function; in MakeForFunction()
566 diag::warn_falloff_noreturn_function; in MakeForFunction()
568 diag::warn_falloff_nonvoid_function; in MakeForFunction()
583 diag::warn_suggest_noreturn_function; in MakeForFunction()
596 diag::warn_maybe_falloff_nonvoid_coroutine; in MakeForCoroutine()
599 diag::warn_falloff_nonvoid_coroutine; in MakeForCoroutine()
608 diag::err_noreturn_block_has_return_expr; in MakeForBlock()
610 diag::err_maybe_falloff_nonvoid_block; in MakeForBlock()
612 diag::err_noreturn_block_has_return_expr; in MakeForBlock()
614 diag::err_falloff_nonvoid_block; in MakeForBlock()
623 diag::err_noreturn_lambda_has_return_expr; in MakeForLambda()
625 diag::warn_maybe_falloff_nonvoid_lambda; in MakeForLambda()
627 diag::err_noreturn_lambda_has_return_expr; in MakeForLambda()
629 diag::warn_falloff_nonvoid_lambda; in MakeForLambda()
639 D.isIgnored(diag::warn_maybe_falloff_nonvoid_function, in checkDiagnostics()
642 D.isIgnored(diag::warn_noreturn_function_has_return_expr, in checkDiagnostics()
645 D.isIgnored(diag::warn_suggest_noreturn_block, FuncLoc)); in checkDiagnostics()
649 D.isIgnored(diag::warn_maybe_falloff_nonvoid_function, FuncLoc) || in checkDiagnostics()
650 D.isIgnored(diag::warn_maybe_falloff_nonvoid_coroutine, in checkDiagnostics()
787 S.Diag(VD->getLocation(), diag::note_block_var_fixit_add_initialization) in SuggestInitializationFixit()
808 S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD->getDeclName() in SuggestInitializationFixit()
845 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_uninit_var) in DiagUninitUse()
852 S.Diag(VD->getLocation(), diag::warn_sometimes_uninit_var) in DiagUninitUse()
857 S.Diag(Use.getUser()->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse()
988 S.Diag(Range.getBegin(), diag::warn_sometimes_uninit_var) in DiagUninitUse()
991 S.Diag(User->getBeginLoc(), diag::note_uninit_var_use) in DiagUninitUse()
994 S.Diag(Fixit1.RemoveRange.getBegin(), diag::note_uninit_fixit_remove_cond) in DiagUninitUse()
1001 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_maybe_uninit_var) in DiagUninitUse()
1009 S.Diag(Use.getUser()->getBeginLoc(), diag::warn_uninit_const_reference) in DiagnoseUninitializedConstRefUse()
1041 S.Diag(DRE->getBeginLoc(), diag::warn_uninit_self_reference_in_init) in DiagnoseUninitializedUse()
1052 diag::warn_uninit_byref_blockvar_captured_by_block) in DiagnoseUninitializedUse()
1063 S.Diag(VD->getBeginLoc(), diag::note_var_declared_here) in DiagnoseUninitializedUse()
1151 diag::warn_unreachable_fallthrough_attr); in checkFallThroughIntoBlock()
1316 PerFunction ? diag::warn_unannotated_fallthrough_per_function in DiagnoseSwitchLabelsFallthrough()
1317 : diag::warn_unannotated_fallthrough); in DiagnoseSwitchLabelsFallthrough()
1335 S.Diag(L, diag::note_insert_fallthrough_fixit) in DiagnoseSwitchLabelsFallthrough()
1339 S.Diag(L, diag::note_insert_break_fixit) in DiagnoseSwitchLabelsFallthrough()
1345 S.Diag(F->getBeginLoc(), diag::err_fallthrough_attr_invalid_placement); in DiagnoseSwitchLabelsFallthrough()
1481 DiagKind = diag::warn_arc_repeated_use_of_weak; in diagnoseRepeatedUseOfWeak()
1483 DiagKind = diag::warn_arc_possible_repeated_use_of_weak; in diagnoseRepeatedUseOfWeak()
1523 diag::note_arc_weak_also_accessed_here) in diagnoseRepeatedUseOfWeak()
1700 ? diag::warn_completion_handler_called_twice in handleDoubleCall()
1701 : diag::warn_called_once_gets_called_twice; in handleDoubleCall()
1703 S.Diag(PrevCall->getBeginLoc(), diag::note_called_once_gets_called_twice) in handleDoubleCall()
1710 ? diag::warn_completion_handler_never_called in handleNeverCalled()
1711 : diag::warn_called_once_never_called; in handleNeverCalled()
1721 ? diag::warn_completion_handler_never_called_when in handleNeverCalled()
1722 : diag::warn_called_once_never_called_when; in handleNeverCalled()
1740 ? diag::warn_completion_handler_never_called in handleCapturedNeverCalled()
1741 : diag::warn_called_once_never_called; in handleCapturedNeverCalled()
1761 diag::warn_called_once_never_called,
1762 diag::warn_called_once_never_called_when,
1763 diag::warn_called_once_gets_called_twice};
1766 diag::warn_completion_handler_never_called,
1767 diag::warn_completion_handler_never_called_when,
1768 diag::warn_completion_handler_called_twice};
1807 S.PDiag(diag::note_thread_warning_in_fun) in getNotes()
1818 S.PDiag(diag::note_thread_warning_in_fun) in getNotes()
1832 S.PDiag(diag::note_thread_warning_in_fun) in getNotes()
1842 LocLocked, S.PDiag(diag::note_locked_here) << Kind)) in makeLockedHereNote()
1850 LocUnlocked, S.PDiag(diag::note_unlocked_here) << Kind)) in makeUnlockedHereNote()
1875 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_cannot_resolve_lock) in handleInvalidLockExp()
1884 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_unlock_but_no_lock) in handleUnmatchedUnlock()
1897 LocUnlock, S.PDiag(diag::warn_unlock_kind_mismatch) in handleIncorrectUnlockKind()
1907 PartialDiagnosticAt Warning(LocDoubleLock, S.PDiag(diag::warn_double_lock) in handleDoubleLock()
1920 DiagID = diag::warn_lock_some_predecessors; in handleMutexHeldEndOfScope()
1923 DiagID = diag::warn_expecting_lock_held_on_loop; in handleMutexHeldEndOfScope()
1926 DiagID = diag::warn_no_unlock; in handleMutexHeldEndOfScope()
1929 DiagID = diag::warn_expecting_locked; in handleMutexHeldEndOfScope()
1945 S.PDiag(diag::warn_lock_exclusive_and_shared) in handleExclusiveAndShared()
1947 PartialDiagnosticAt Note(Loc2, S.PDiag(diag::note_lock_exclusive_and_shared) in handleExclusiveAndShared()
1957 diag::warn_variable_requires_any_lock: in handleNoMutexHeld()
1958 diag::warn_var_deref_requires_any_lock; in handleNoMutexHeld()
1972 DiagID = diag::warn_variable_requires_lock_precise; in handleMutexNotHeld()
1975 DiagID = diag::warn_var_deref_requires_lock_precise; in handleMutexNotHeld()
1978 DiagID = diag::warn_fun_requires_lock_precise; in handleMutexNotHeld()
1981 DiagID = diag::warn_guarded_pass_by_reference; in handleMutexNotHeld()
1984 DiagID = diag::warn_pt_guarded_pass_by_reference; in handleMutexNotHeld()
1987 DiagID = diag::warn_guarded_return_by_reference; in handleMutexNotHeld()
1990 DiagID = diag::warn_pt_guarded_return_by_reference; in handleMutexNotHeld()
1996 PartialDiagnosticAt Note(Loc, S.PDiag(diag::note_found_mutex_near_match) in handleMutexNotHeld()
2000 S.PDiag(diag::note_guarded_by_declared_here) in handleMutexNotHeld()
2008 DiagID = diag::warn_variable_requires_lock; in handleMutexNotHeld()
2011 DiagID = diag::warn_var_deref_requires_lock; in handleMutexNotHeld()
2014 DiagID = diag::warn_fun_requires_lock; in handleMutexNotHeld()
2017 DiagID = diag::warn_guarded_pass_by_reference; in handleMutexNotHeld()
2020 DiagID = diag::warn_pt_guarded_pass_by_reference; in handleMutexNotHeld()
2023 DiagID = diag::warn_guarded_return_by_reference; in handleMutexNotHeld()
2026 DiagID = diag::warn_pt_guarded_return_by_reference; in handleMutexNotHeld()
2034 S.PDiag(diag::note_guarded_by_declared_here)); in handleMutexNotHeld()
2044 S.PDiag(diag::warn_acquire_requires_negative_cap) in handleNegativeNotHeld()
2052 Loc, S.PDiag(diag::warn_fun_requires_negative_cap) << D << LockName); in handleNegativeNotHeld()
2058 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_fun_excludes_mutex) in handleFunExcludesLock()
2066 S.PDiag(diag::warn_acquired_before) << Kind << L1Name << L2Name); in handleLockAcquiredBefore()
2072 S.PDiag(diag::warn_acquired_before_after_cycle) << L1Name); in handleBeforeAfterCycle()
2115 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_loop_state_mismatch) << in warnLoopStateMismatch()
2127 diag::warn_param_return_typestate_mismatch) << VariableName << in warnParamReturnTypestateMismatch()
2137 diag::warn_param_typestate_mismatch) << ExpectedState << ObservedState); in warnParamTypestateMismatch()
2145 diag::warn_return_typestate_for_unconsumable_type) << TypeName); in warnReturnTypestateForUnconsumableType()
2154 diag::warn_return_typestate_mismatch) << ExpectedState << ObservedState); in warnReturnTypestateMismatch()
2163 diag::warn_use_of_temp_in_invalid_state) << MethodName << State); in warnUseOfTempInInvalidState()
2171 PartialDiagnosticAt Warning(Loc, S.PDiag(diag::warn_use_in_invalid_state) << in warnUseInInvalidState()
2286 S.Diag(Loc, diag::note_unsafe_buffer_operation) << MsgParam << Range; in handleUnsafeOperation()
2288 S.Diag(Loc, diag::warn_unsafe_buffer_operation) << MsgParam << Range; in handleUnsafeOperation()
2290 S.Diag(Loc, diag::note_safe_buffer_usage_suggestions_disabled); in handleUnsafeOperation()
2307 S.Diag(Loc, diag::warn_unsafe_buffer_usage_in_container); in handleUnsafeOperationInContainer()
2311 S.Diag(Loc, diag::note_unsafe_buffer_operation) << MsgParam << Range; in handleUnsafeOperationInContainer()
2321 S.Diag(Variable->getLocation(), diag::warn_unsafe_buffer_variable) in handleUnsafeVariableGroup()
2347 BriefMsg ? diag::note_unsafe_buffer_variable_fixit_together in handleUnsafeVariableGroup()
2348 : diag::note_unsafe_buffer_variable_fixit_group); in handleUnsafeVariableGroup()
2361 S.Diag(Note.first, diag::note_safe_buffer_debug_mode) << Note.second; in handleUnsafeVariableGroup()
2370 return S.Diags.isIgnored(diag::warn_unsafe_buffer_usage_in_container, Loc); in ignoreUnsafeBufferInContainer()
2430 static unsigned isEnabled(DiagnosticsEngine &D, unsigned diag) { in isEnabled() argument
2431 return (unsigned)!D.isIgnored(diag, SourceLocation()); in isEnabled()
2442 using namespace diag; in AnalysisBasedWarnings()
2534 if (!Diags.isIgnored(diag::warn_unsafe_buffer_operation, in IssueWarnings()
2536 !Diags.isIgnored(diag::warn_unsafe_buffer_variable, in IssueWarnings()
2538 !Diags.isIgnored(diag::warn_unsafe_buffer_usage_in_container, in IssueWarnings()
2548 if (!Diags.isIgnored(diag::warn_unsafe_buffer_operation, SourceLocation()) || in IssueWarnings()
2549 !Diags.isIgnored(diag::warn_unsafe_buffer_variable, SourceLocation()) || in IssueWarnings()
2550 !Diags.isIgnored(diag::warn_unsafe_buffer_usage_in_container, in IssueWarnings()
2703 if (!Diags.isIgnored(diag::warn_thread_safety_beta, D->getBeginLoc())) in IssueWarnings()
2705 if (!Diags.isIgnored(diag::warn_thread_safety_verbose, D->getBeginLoc())) in IssueWarnings()
2720 if (!Diags.isIgnored(diag::warn_uninit_var, D->getBeginLoc()) || in IssueWarnings()
2721 !Diags.isIgnored(diag::warn_sometimes_uninit_var, D->getBeginLoc()) || in IssueWarnings()
2722 !Diags.isIgnored(diag::warn_maybe_uninit_var, D->getBeginLoc()) || in IssueWarnings()
2723 !Diags.isIgnored(diag::warn_uninit_const_reference, D->getBeginLoc())) { in IssueWarnings()
2757 !Diags.isIgnored(diag::warn_unannotated_fallthrough, D->getBeginLoc()); in IssueWarnings()
2759 diag::warn_unannotated_fallthrough_per_function, D->getBeginLoc()); in IssueWarnings()
2766 !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, D->getBeginLoc())) in IssueWarnings()
2771 if (!Diags.isIgnored(diag::warn_infinite_recursive_function, in IssueWarnings()
2779 if (!Diags.isIgnored(diag::warn_throw_in_noexcept_func, D->getBeginLoc())) in IssueWarnings()