[libcxx-commits] [libcxx] [libc++] Put _LIBCPP_NODEBUG on allocator trait aliases. (PR #118835)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Dec 5 10:27:54 PST 2024
================
@@ -44,10 +44,10 @@ _LIBCPP_BEGIN_NAMESPACE_STD
// __pointer
template <class _Tp>
-using __pointer_member = typename _Tp::pointer;
+using __pointer_member _LIBCPP_NODEBUG = typename _Tp::pointer;
template <class _Tp, class _Alloc>
-using __pointer = __detected_or_t<_Tp*, __pointer_member, __libcpp_remove_reference_t<_Alloc> >;
+using __pointer _LIBCPP_NODEBUG = __detected_or_t<_Tp *, __pointer_member, __libcpp_remove_reference_t<_Alloc> >;
----------------
cmtice wrote:
I originally ran it through clang format. The result failed the clang format tests that run here; they asked me to put it back into the original format (which I did). That change also failed clang format -- it asked me to put it back into the form I had before.
Are there some special clang-format flags I need to use for libcxx?
(The command I originally tried was: clang/tools/clang-format/clang-format-diff.py -p1 -i -style=LLVM
https://github.com/llvm/llvm-project/pull/118835
More information about the libcxx-commits
mailing list