diff --git a/doc/qtcreator/images/qtcreator-clang-tidy-view.webp b/doc/qtcreator/images/qtcreator-clang-tidy-view.webp index 1a914a683a8..46be17b10ea 100644 Binary files a/doc/qtcreator/images/qtcreator-clang-tidy-view.webp and b/doc/qtcreator/images/qtcreator-clang-tidy-view.webp differ diff --git a/doc/qtcreator/images/qtcreator-clang-tools-filter-diagnostics.webp b/doc/qtcreator/images/qtcreator-clang-tools-filter-diagnostics.webp new file mode 100644 index 00000000000..bfb3b7001fa Binary files /dev/null and b/doc/qtcreator/images/qtcreator-clang-tools-filter-diagnostics.webp differ diff --git a/doc/qtcreator/src/analyze/creator-clang-static-analyzer.qdoc b/doc/qtcreator/src/analyze/creator-clang-static-analyzer.qdoc index be7eda671df..061feff3c56 100644 --- a/doc/qtcreator/src/analyze/creator-clang-static-analyzer.qdoc +++ b/doc/qtcreator/src/analyze/creator-clang-static-analyzer.qdoc @@ -77,6 +77,37 @@ Select the \inlineimage icons/settings.png button to customize diagnostics for the current project. + \section2 Filter dianostics + + To filter diagnostics: + + \list 1 + \li Select \inlineimage icons/filtericon.png to open the + \uicontrol {Filter Diagnostics} dialog. + \image qtcreator-clang-tools-filter-diagnostics.webp {Filter Diagnostics dialog} + \li Select the diagnostics to view. + \li Select \uicontrol OK. + \endlist + + To view all diagnostics, select \uicontrol {Select All}. To view diagnostics + that have fixits, select \uicontrol {Select All with Fixits}. + + To hide all diagnostics, select \uicontrol {Clear Selection}. + + To view diagnostics of a particular kind, right-click an entry in + \uicontrol Diagnostics and select \uicontrol {Filter for This Diagnostic Kind} + in the context menu. To hide diagnostics of that kind, select + \uicontrol {Filter out This Diagnostic Kind}. + + \section2 Suppress diagnostics + + To suppress diagnostics, select \uicontrol {Suppress This Diagnostic} or + \uicontrol {Suppress This Diagnostic Inline} in the context menu. + + To view the suppression list for a project and to remove + diagnostics from it, select \uicontrol Projects > + \uicontrol {Project Settings} > \uicontrol {Clang Tools}. + \section1 Disable checks To disable checks of a particular type either globally or for a @@ -256,13 +287,6 @@ \endlist - \section2 Suppressing Diagnostics - - To suppress diagnostics, select \uicontrol {Suppress This Diagnostic} in the - context menu. To view the suppression list for a project and to remove - diagnostics from it, select \uicontrol Projects > - \uicontrol {Project Settings} > \uicontrol {Clang Tools}. - \section2 Selecting Clazy Check Levels The Clazy checks are divided into levels from 0 to 3. The checks at level 0