[clang-tools-extra] [clang-tidy] Support LineFilter in .clang-tidy configuration files (PR #202575)

Aleksandr Platonov via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 27 07:50:42 PDT 2026


ArcsinX wrote:

To be honest, I struggle to envision a scenario where line filter would actually be used in a configuration file. `.clang-tidy` is typically something stored in the repository. Consequently, when modifying code, a developer would have to remember to update the `.clang-tidy` because the line numbers have shifted. It seems far more logical to use `NOLINT` comments.
Thus, adding such an option to the config solely to pass it through to clangd doesn't seem entirely worthwhile.
Perhaps I'm overlooking some use cases.

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


More information about the cfe-commits mailing list