[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 27 01:05:19 PST 2024


HerrCai0907 wrote:

> I wonder however how it will work for people who are stuck in old clang-tidy files for whatever reason

Good point, maybe we can use more smart way to do warning: only warn the global option is set but local option is not.

Have some redundant options is not the aim for this deprecation things, we only want to avoid user suddenly find the behaviors of lots of check are changed.
So we only need to warn for config which rely on global option and no local option.

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


More information about the cfe-commits mailing list