![]() You can also suppress inspections from the Results tool window.įor C/C++ code, CLion uses the #pragma clang diagnostic to suppress inspections. Suppress an inspection in the editorĬlick the arrow next to the inspection you want to suppress, and select the necessary suppress action. When you suppress an inspection, the code analysis engine doesn't highlight the problem found by this inspection in the specific piece of code (file, statement, function, or line). In the Inspection Results tool window (after running code analysis), right-click the inspection you want to disable and select Disable inspection.Ĭlick to hide the disabled inspection alerts. Place the caret at the highlighted line and press Alt+Enter (or click to use the intention action).Ĭlick the arrow next to the inspection you want to disable, and select Disable inspection.ĭisable an inspection in the Results tool window Locate the inspection you want to disable, and clear the checkbox next to it. In the Settings/Preferences dialog Ctrl+Alt+S, select Editor | Inspections. Disable inspections Disable an inspection in the settings Note that when you disable an inspection, you disable it in the current inspection profile it remains enabled in other profiles. It means that the code analysis engine stops searching project files for the problem that this inspection is designed to detect. When you disable an inspection, you turn it off. In this case, you can disable or suppress them. ![]() Some inspections may report problems that you currently do not want to see. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |