gpt4 book ai didi

clang-tidy - 在 clang-tidy 配置中没有 `-line-filter` 等价物?

转载 作者:行者123 更新时间:2023-12-03 14:42:03 30 4
gpt4 key购买 nike

我想配置我的 -line-filter= .clang-tidy 中的参数文件而不是在生成命令的 cmake 源文件中。添加 LineFilter文件的 key 只会让我出现“未知 key ”错误。这真的不通过配置文件支持吗?有其他选择吗?

最佳答案

不幸的是,这不受支持,请参阅 ClangTidyOptions.h 的来源

/// Global options. These options are neither stored nor read from
/// configuration files.
struct ClangTidyGlobalOptions {
/// Output warnings from certain line ranges of certain files only.
/// If empty, no warnings will be filtered.
std::vector<FileFilter> LineFilter;
};

关于clang-tidy - 在 clang-tidy 配置中没有 `-line-filter` 等价物?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63301255/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com