Skip to content

Commit d3d78e4

Browse files
committed
fixup! rename ifdef
1 parent 7932eda commit d3d78e4

File tree

1 file changed

+7
-7
lines changed
  • lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/string

1 file changed

+7
-7
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/string/main.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#endif
2323
#if REVISION <= 4
2424
// Pre-TODO layout.
25-
#define UB_PADDING
25+
#define NON_STANDARD_PADDING
2626
#endif
2727
// REVISION == 5: current layout
2828

@@ -38,15 +38,15 @@
3838
namespace std {
3939
namespace __lldb {
4040

41-
#ifdef UB_PADDING
41+
#ifdef NON_STANDARD_PADDING
4242
#if defined(ALTERNATE_LAYOUT) && defined(SUBCLASS_PADDING)
4343
template <class _CharT, size_t = sizeof(_CharT)> struct __padding {
4444
unsigned char __xx[sizeof(_CharT) - 1];
4545
};
4646

4747
template <class _CharT> struct __padding<_CharT, 1> {};
4848
#endif
49-
#else // !UB_PADDING
49+
#else // !NON_STANDARD_PADDING
5050
template <size_t _PaddingSize> struct __padding {
5151
char __padding_[_PaddingSize];
5252
};
@@ -89,7 +89,7 @@ template <class _CharT, class _Traits, class _Allocator> class basic_string {
8989
};
9090
#else // !SUBCLASS_PADDING
9191

92-
#ifdef UB_PADDING
92+
#ifdef NON_STANDARD_PADDING
9393
unsigned char __padding[sizeof(value_type) - 1];
9494
#else
9595
[[no_unique_address]] __padding<sizeof(value_type) - 1> __padding_;
@@ -159,11 +159,11 @@ template <class _CharT, class _Traits, class _Allocator> class basic_string {
159159
unsigned char __is_long_ : 1;
160160
unsigned char __size_ : 7;
161161
END_PACKED_ANON_STRUCT
162-
#ifdef UB_PADDING
162+
#ifdef NON_STANDARD_PADDING
163163
unsigned char __padding[sizeof(value_type) - 1];
164-
#else // !UB_PADDING
164+
#else // !NON_STANDARD_PADDING
165165
[[no_unique_address]] __padding<sizeof(value_type) - 1> __padding_;
166-
#endif // UB_PADDING
166+
#endif // NON_STANDARD_PADDING
167167

168168
#endif // SHORT_UNION
169169
value_type __data_[__min_cap];

0 commit comments

Comments
 (0)