Skip to content

Commit 50ff112

Browse files
committed
formatting
1 parent e191be6 commit 50ff112

File tree

2 files changed

+11
-13
lines changed
  • libcxx/include

2 files changed

+11
-13
lines changed

libcxx/include/__locale_dir/locale_base_api/ibm.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929
_LIBCPP_BEGIN_NAMESPACE_STD
3030
#ifdef __MVS__
31-
#define _LIBCPP_CLOC std::__c_locale()
32-
#ifndef _LIBCPP_LC_GLOBAL_LOCALE
33-
#define _LIBCPP_LC_GLOBAL_LOCALE ((locale_t) -1)
34-
#endif
31+
# define _LIBCPP_CLOC std::__c_locale()
32+
# ifndef _LIBCPP_LC_GLOBAL_LOCALE
33+
# define _LIBCPP_LC_GLOBAL_LOCALE ((locale_t) -1)
34+
# endif
3535
#else
3636
extern locale_t __cloc();
37-
#define _LIBCPP_CLOC std::__cloc()
37+
# define _LIBCPP_CLOC std::__cloc()
3838
#endif
3939
_LIBCPP_END_NAMESPACE_STD
4040

@@ -53,9 +53,7 @@ struct __setAndRestore {
5353
}
5454
}
5555

56-
~__setAndRestore() {
57-
std::uselocale(__stored);
58-
}
56+
~__setAndRestore() { std::uselocale(__stored); }
5957

6058
private:
6159
locale_t __stored = (locale_t)0;
@@ -101,11 +99,11 @@ _LIBCPP_ATTRIBUTE_FORMAT(__printf__, 2, 0) int vasprintf(char** strp, const char
10199
va_list ap_copy;
102100
// va_copy may not be provided by the C library in C++03 mode.
103101
#if defined(_LIBCPP_CXX03_LANG) && __has_builtin(__builtin_va_copy)
104-
#if defined(__MVS__) && !defined(_VARARG_EXT_)
102+
# if defined(__MVS__) && !defined(_VARARG_EXT_)
105103
__builtin_zos_va_copy(ap_copy, ap);
106-
#else
104+
# else
107105
__builtin_va_copy(ap_copy, ap);
108-
#endif
106+
# endif
109107
#else
110108
va_copy(ap_copy, ap);
111109
#endif

libcxx/include/__thread/support/pthread.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ inline _LIBCPP_HIDE_FROM_ABI void __libcpp_thread_yield() { sched_yield(); }
195195

196196
inline _LIBCPP_HIDE_FROM_ABI void __libcpp_thread_sleep_for(const chrono::nanoseconds& __ns) {
197197
#ifdef __MVS__
198-
#define __LIBCPP_NS __ibm::
198+
# define __LIBCPP_NS __ibm::
199199
#else
200-
#define __LIBCPP_NS
200+
# define __LIBCPP_NS
201201
#endif
202202
__libcpp_timespec_t __ts = std::__convert_to_timespec<__libcpp_timespec_t>(__ns);
203203
while (__LIBCPP_NS nanosleep(&__ts, &__ts) == -1 && errno == EINTR)

0 commit comments

Comments
 (0)