工具/软件:
你好
我正在 CCS 20 中的一个项目中集成 CLANG-TIDY 检查
clangd 帮助显示了.clangd 文件可用于配置特定工程的选项
>clangd --help
...
--enable-config - Read user and project configuration from YAML files.
Project config is from a .clangd file in the project directory.
User config is from clangd/config.yaml in the following directories:
Windows: %USERPROFILE%\AppData\Local
Mac OS: ~/Library/Preferences/
Others: $XDG_CONFIG_HOME, usually ~/.config
由于.clang-tidy 文件当前没有 spported、我想知道是否可以将 clang-tidy 格式转换为.clangd 格式、并使 clangd 将其用于工程
在同一环境下、如何在 CI 中使用 clangd 生成有关失败检查的报告?
在另一种方法中、我尝试使用 C:\ti\ccs2020\ccs\tools\compiler\ti-cgt-armllvm_4.0.3.LTs\bin\tiarmclang-tidy.exe 编译器工具以及位于下的 compile_commands.json 文件 / /.clangd/
tiarmclang 编译器工具不适用于该文件
PS:我在项目根目录中有一个有效的 clang-tidy 文件
>C:\ti\ccs2020\ccs\tools\compiler\ti-cgt-armllvm_4.0.3.LTS\bin\tiarmclang-tidy.exe -p Debug/.clangd gpio_toggle_output.c Error while processing <ProjPath>\gpio_toggle_output.c. error: no input files [clang-diagnostic-error] error: unable to handle compilation, expected exactly one compiler job in '' [clang-diagnostic-error] Found compiler error(s).
我们如何生成有效的 compile_commands.json 文件来与 tiarmclang 一同使用;或者如何以某种方式编辑 clangd 生成的文件以使其兼容
好极了
Radhwen