From 33cf40122279342b50f92a3a53f5c185390b6018 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 2 Mar 2023 13:04:58 -0500 Subject: [PATCH] [libc++][NFC] Reformat aligned_storage specialization macro --- libcxx/include/__type_traits/aligned_storage.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/libcxx/include/__type_traits/aligned_storage.h b/libcxx/include/__type_traits/aligned_storage.h index d41923d..29938d2 100644 --- a/libcxx/include/__type_traits/aligned_storage.h +++ b/libcxx/include/__type_traits/aligned_storage.h @@ -102,15 +102,13 @@ template ::valu #endif -#define _CREATE_ALIGNED_STORAGE_SPECIALIZATION(n) \ -template \ -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 \ + 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); -- 2.7.4