forked from qt-creator/qt-creator
Doc: Describe suppressing and filtering Clang-Tidy diagnostics
Task-number: QTCREATORBUG-30604 Change-Id: I259f5484c86b96e31c0cdb4f796d11c2a6afec2a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 9.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@@ -77,6 +77,37 @@
|
|||||||
Select the \inlineimage icons/settings.png
|
Select the \inlineimage icons/settings.png
|
||||||
button to customize diagnostics for the current project.
|
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
|
\section1 Disable checks
|
||||||
|
|
||||||
To disable checks of a particular type either globally or for a
|
To disable checks of a particular type either globally or for a
|
||||||
@@ -256,13 +287,6 @@
|
|||||||
|
|
||||||
\endlist
|
\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
|
\section2 Selecting Clazy Check Levels
|
||||||
|
|
||||||
The Clazy checks are divided into levels from 0 to 3. The checks at level 0
|
The Clazy checks are divided into levels from 0 to 3. The checks at level 0
|
||||||
|
Reference in New Issue
Block a user