[clang-tools-extra] Add option to exclude headers from clang-tidy analysis (PR #91400)

SwanBai Lei27 via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 19:26:15 PDT 2024


Baiyi27 wrote:

> This feature works as intended, it is only for filtering out diagnosed issues, not for skipping the analysis in those files. See #52959 for the feature you are looking for. TLDR: clang-tidy currently does not skip the analysis in (system) header files, `exclude-header-filter` is only filtering out warnings you are not interested in (i.e., `Supppressed 3386 warnings...`)此功能按预期工作,它仅用于过滤诊断出的问题,而不是跳过这些文件中的分析。看 #52959 寻找您正在寻找的功能。 TLDR:clang-tidy 目前不会跳过(系统)头文件中的分析, `exclude-header-filter`仅过滤掉您不感兴趣的警告(即`Supppressed 3386 warnings...` )

I have read the issues in detail and it doesn't look like it has been resolved? But just want to filter out the content not interested in, even if you don't use `exclude-header-filter` The output is the same as above,It will not expand the contents(`Supppressed 3386 warnings...`).

https://github.com/llvm/llvm-project/pull/91400


More information about the cfe-commits mailing list