[clang-tools-extra] [clang-tidy][modernize-type-traits] Add UseCxx20Aliases option (PR #244567)
Vitaly Goldshteyn via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 24 06:54:33 PST 2026
goldvitaly wrote:
> Hi! Thanks for the PR!
>
> Could we use the existing `--extra-arg=-std=c++17` and `--removed-arg=-std=c++20` options (or `ExtraArgs` and `RemovedArgs` in .clang-tidy) to address this use case instead?
>
> Is there a scenario where overriding `-std=` this way would not work for you?
I did try that first, but Abseil in particular has several C++20 only parts.
Configuring different clan-tidy for different files would be a lot of hassle.
With just C++17 clang-tidy will fail on C++20 only parts.
I am not sure how many libraries are evolution this way though.
https://github.com/llvm/llvm-project/pull/244567
More information about the cfe-commits
mailing list