[clang-tools-extra] [clang-tidy][NFC] Add helper for deprecated check aliases (PR #189522)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 3 11:06:59 PDT 2026


https://github.com/vbvictor commented:

I feel this shouldn't be in `ClangTidyCheck` class.
The class should store minimal info for analysis and shouldn't care if the check is deprecated or not. I believe we currently break [SRP](https://en.wikipedia.org/wiki/Single-responsibility_principle).

The better place would be in utils with something like:
```cpp
isDeprecatedAlias(Context, DeprecatedName, TargetName)
```


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


More information about the cfe-commits mailing list