[libcxx-commits] [libcxx] 3b92cf2 - [libc++] Add _LIBCPP_NODEBUG to __unwrap_ref_decay_t

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 8 13:30:42 PST 2025


Author: Nikolas Klauser
Date: 2025-01-08T22:28:54+01:00
New Revision: 3b92cf281a20a90717e481f80cc010da8096c249

URL: https://github.com/llvm/llvm-project/commit/3b92cf281a20a90717e481f80cc010da8096c249
DIFF: https://github.com/llvm/llvm-project/commit/3b92cf281a20a90717e481f80cc010da8096c249.diff

LOG: [libc++] Add _LIBCPP_NODEBUG to __unwrap_ref_decay_t

`__unwrap_ref_decay_t` should be marked `_LIBCPP_NODEBUG`, since it's
and internal type alias and this causes our CI to fail currently, since
we started enforcing this policy via clang-tidy.

Added: 
    

Modified: 
    libcxx/include/__type_traits/unwrap_ref.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__type_traits/unwrap_ref.h b/libcxx/include/__type_traits/unwrap_ref.h
index 5ac037333d0876..11a069d6630239 100644
--- a/libcxx/include/__type_traits/unwrap_ref.h
+++ b/libcxx/include/__type_traits/unwrap_ref.h
@@ -30,7 +30,7 @@ struct __unwrap_reference<reference_wrapper<_Tp> > {
 };
 
 template <class _Tp>
-using __unwrap_ref_decay_t = typename __unwrap_reference<__decay_t<_Tp> >::type;
+using __unwrap_ref_decay_t _LIBCPP_NODEBUG = typename __unwrap_reference<__decay_t<_Tp> >::type;
 
 #if _LIBCPP_STD_VER >= 20
 template <class _Tp>


        


More information about the libcxx-commits mailing list