[clang-tools-extra] [clang-tidy] Extend `modernize-type-traits` to fold remove_cv_t<remove_reference_t<...>> into remove_cv_ref_t (PR #204789)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 20 04:16:28 PDT 2026


================
@@ -25,6 +25,9 @@ Would be converted into:
   std::add_const_t<T>
   std::make_signed_t<unsigned>
 
+Also suggests converting ``std::remove_cv_t<std::remove_reference_t<...>`` into
+``std::remove_cvref_t<...>`` when targeting C++20 or above.
----------------
vbvictor wrote:

I think this should go into first sentence and given example as any other case to keep things universal

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


More information about the cfe-commits mailing list