![]() In the Clang-Tidy Checks tab, select Select Checks to select the checks to perform.In the Clang Warnings tab, select the Use diagnostic flags from the build system check box to forward diagnostic flags, such as warning flags, from the build system to the Clang code model for displaying annotations in the code editor.In the Diagnostic configuration name field, give the configuration a name, and then select OK.Select Copy to copy the selected diagnostics for editing.clang-tidy file, if present in the Clang Tools tab. To perform checks from a Clang Tidy configuration file instead, select Prefer. Click the value of the field to open the Diagnostic Configurations dialog, where you can select and edit the checks to perform. The Diagnostic configuration field shows the checks to perform.In the Parallel jobs field, select the number of jobs to run in parallel to make the analysis faster on multi-core processors.To disable automatic analysis of open documents, deselect the Analyze open files check box.For big projects, not building the project might save some time. The Clang tools do not require that you build the project before analysis, but they might display misleading warnings about files missing that are generated during the build. To build the project before running the Clang tools, select the Build the project before analysis check box.In the Clang-Tidy and Clazy-Standalone fields, set the paths to the executables to use. ![]() Select Preferences > Analyzer > Clang Tools.To configure Clang diagnostics globally for Clang tools: To open the Clang static analyzer, select Go to Analyzer. To view and modify the global settings, select the link in Use global settings. To restore the global settings, select Restore Global Settings. Select the button to customize Clang diagnostics for the current project. To disable checks of a particular type either globally or for a particular project, select Disable This Check or Disable These Checks in the context menu. To see more information about an issue that is marked with the icon, hover the mouse pointer over the line. To see the status of an issue, hover the mouse pointer over the icon next to the check box. ![]() ![]() Select the Select Fixits check box to select all fixits. If a fixit exists for an issue, you can select the check box next to the issue to schedule it for fixing. Note: If you select Debug in the mode selector to open the Debug mode and then select Clang-Tidy or Clazy, you must select the ( Start) button to open the Files to Analyze dialog.ĭouble-click an issue to move to the location where the issue appears in the code editor. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |