[libcxx-commits] [libcxx] 33cf401 - [libc++][NFC] Reformat aligned_storage specialization macro
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 2 10:05:25 PST 2023
Author: Louis Dionne
Date: 2023-03-02T13:05:15-05:00
New Revision: 33cf40122279342b50f92a3a53f5c185390b6018
URL: https://github.com/llvm/llvm-project/commit/33cf40122279342b50f92a3a53f5c185390b6018
DIFF: https://github.com/llvm/llvm-project/commit/33cf40122279342b50f92a3a53f5c185390b6018.diff
LOG: [libc++][NFC] Reformat aligned_storage specialization macro
Added:
Modified:
libcxx/include/__type_traits/aligned_storage.h
Removed:
################################################################################
diff --git a/libcxx/include/__type_traits/aligned_storage.h b/libcxx/include/__type_traits/aligned_storage.h
index d41923d4fbb83..29938d286244e 100644
--- a/libcxx/include/__type_traits/aligned_storage.h
+++ b/libcxx/include/__type_traits/aligned_storage.h
@@ -102,15 +102,13 @@ template <size_t _Len, size_t _Align = __find_max_align<__all_types, _Len>::valu
#endif
-#define _CREATE_ALIGNED_STORAGE_SPECIALIZATION(n) \
-template <size_t _Len>\
-struct _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_TEMPLATE_VIS aligned_storage<_Len, n>\
-{\
- struct _ALIGNAS(n) type\
- {\
- unsigned char __lx[(_Len + n - 1)/n * n];\
- };\
-}
+#define _CREATE_ALIGNED_STORAGE_SPECIALIZATION(n) \
+ template <size_t _Len> \
+ struct _LIBCPP_DEPRECATED_IN_CXX23 _LIBCPP_TEMPLATE_VIS aligned_storage<_Len, n> { \
+ struct _ALIGNAS(n) type { \
+ unsigned char __lx[(_Len + n - 1) / n * n]; \
+ }; \
+ }
_CREATE_ALIGNED_STORAGE_SPECIALIZATION(0x1);
_CREATE_ALIGNED_STORAGE_SPECIALIZATION(0x2);
More information about the libcxx-commits
mailing list