This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
我正在尝试在 CCS Theia 1.5.1.3中配置格式样式。 根据 https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1371734/codecomposer-theia-document-formatting-of-comments、 可以使用"home"目录中的.clang-format 文件对其进行更改。 此目录在 Windows 上引用的是哪个目录? 我尝试将其放在 c:\user\%username%\和根项目文件夹中。 这些选项似乎都不会对代码格式的行为产生任何影响。 是否有任何文档? 对.clang-tidy 也是如此。 将配置文件放在哪里? 在工程根目录中、它似乎被忽略。
Matthias、您好!
clang-format 文件必须位于`ti`文件夹的父目录中。 您可以尝试将该文件放在该文件夹的父目录中。 Windows 中`的"home"目录指的是` C:\ 、但并不需要。
希望这对您有所帮助!
Udit
它现在的工作,问题是,我的.clang-format 文件包含一个配置是无效的已安装的 clangd 版本。 更新 clangd 后、它将起作用。
如何在 CCS 中使用 clang-tidy 检查? 我在 CCS->Clang-tidy 配置中启用了一些检查、但似乎没有任何输出或结果。 是否有此功能的任何文档?
但似乎没有任何输出或结果
输出将出现在 Problems 视图中: