指定 Clang 工具设置

为当前项目设置 Clang-Tidy 和 Clazy 检查:

  1. 选择Projects >Project Settings >Clang Tools

    Clang 工具自定义设置

  2. 清除Use global settings
  3. 为项目指定preferences
  4. Suppressed diagnostics 中,您可以查看项目的抑制列表,并从中删除诊断。

要恢复全局设置,请选择Restore Global Settings 。要查看和修改全局设置,请选择Use global settings 中的链接。

要打开Clang-Tidy 视图,请选择Go to Clang-Tidy 。要打开Clazy 视图,请选择Go to Clazy

另请参阅 配置 Clang 诊断使用 Clang-Tidy 和 Clazy 分析代码,以及Clang 工具

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.