Skip to content

Commit c81fb42

Browse files
committed
formatting
1 parent 5649cdc commit c81fb42

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/*===----------------------------- locale.h ----------------------------------===
1+
/*===----------------------------- locale.h
2+
*----------------------------------===
23
*
34
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45
* See https://llvm.org/LICENSE.txt for license information.
@@ -9,11 +10,11 @@
910

1011
#ifndef __ZOS_WRAPPERS_LOCALE_H
1112
#define __ZOS_WRAPPERS_LOCALE_H
12-
#if defined(__MVS__)
13-
#include_next <locale.h>
14-
#ifdef __locale
15-
#undef __locale
16-
#define __locale __locale
17-
#endif
18-
#endif /* defined(__MVS__) */
13+
#if defined(__MVS__)
14+
#include_next <locale.h>
15+
#ifdef __locale
16+
#undef __locale
17+
#define __locale __locale
18+
#endif
19+
#endif /* defined(__MVS__) */
1920
#endif /* __ZOS_WRAPPERS_LOCALE_H */

libcxx/include/__locale_dir/locale_base_api.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ inline _LIBCPP_HIDE_FROM_ABI long double __libcpp_strtold(const char* __nptr, ch
166166
return strtold_l(__nptr, __endptr, __loc);
167167
}
168168

169-
inline _LIBCPP_HIDE_FROM_ABI long long __libcpp_strtoll(const char* __nptr, char** __endptr, int __base, __locale_t __loc) {
169+
inline _LIBCPP_HIDE_FROM_ABI long long
170+
__libcpp_strtoll(const char* __nptr, char** __endptr, int __base, __locale_t __loc) {
170171
return strtoll_l(__nptr, __endptr, __base, __loc);
171172
}
172173

@@ -175,9 +176,9 @@ __libcpp_strtoull(const char* __nptr, char** __endptr, int __base, __locale_t __
175176
return strtoull_l(__nptr, __endptr, __base, __loc);
176177
}
177178

178-
# if defined(__MVS__)
179+
# if defined(__MVS__)
179180
using namespace __ibm;
180-
# endif
181+
# endif
181182

182183
//
183184
// Character manipulation functions
@@ -199,7 +200,8 @@ inline _LIBCPP_HIDE_FROM_ABI int __libcpp_tolower(int __ch, __locale_t __loc) {
199200
inline _LIBCPP_HIDE_FROM_ABI int __libcpp_wcscoll(const wchar_t* __s1, const wchar_t* __s2, __locale_t __loc) {
200201
return wcscoll_l(__s1, __s2, __loc);
201202
}
202-
inline _LIBCPP_HIDE_FROM_ABI size_t __libcpp_wcsxfrm(wchar_t* __dest, const wchar_t* __src, size_t __n, __locale_t __loc) {
203+
inline _LIBCPP_HIDE_FROM_ABI size_t
204+
__libcpp_wcsxfrm(wchar_t* __dest, const wchar_t* __src, size_t __n, __locale_t __loc) {
203205
return wcsxfrm_l(__dest, __src, __n, __loc);
204206
}
205207
inline _LIBCPP_HIDE_FROM_ABI int __libcpp_iswspace(wint_t __ch, __locale_t __loc) { return iswspace_l(__ch, __loc); }

libcxx/include/__locale_dir/locale_base_api/ibm.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ _LIBCPP_EXPORTED_FROM_ABI int toupper_l(int, locale_t);
132132
_LIBCPP_EXPORTED_FROM_ABI int tolower_l(int, locale_t);
133133
_LIBCPP_EXPORTED_FROM_ABI wint_t towupper_l(wint_t, locale_t);
134134
_LIBCPP_EXPORTED_FROM_ABI wint_t towlower_l(wint_t, locale_t);
135-
_LIBCPP_EXPORTED_FROM_ABI int strcoll_l(const char *, const char *, locale_t);
136-
_LIBCPP_EXPORTED_FROM_ABI size_t strxfrm_l(char *, const char *, size_t, locale_t);
137-
_LIBCPP_EXPORTED_FROM_ABI size_t strftime_l(char *, size_t , const char *, const struct tm *, locale_t);
138-
_LIBCPP_EXPORTED_FROM_ABI int wcscoll_l(const wchar_t *, const wchar_t *, locale_t);
139-
_LIBCPP_EXPORTED_FROM_ABI size_t wcsxfrm_l(wchar_t *, const wchar_t *, size_t , locale_t);
140-
}
135+
_LIBCPP_EXPORTED_FROM_ABI int strcoll_l(const char*, const char*, locale_t);
136+
_LIBCPP_EXPORTED_FROM_ABI size_t strxfrm_l(char*, const char*, size_t, locale_t);
137+
_LIBCPP_EXPORTED_FROM_ABI size_t strftime_l(char*, size_t, const char*, const struct tm*, locale_t);
138+
_LIBCPP_EXPORTED_FROM_ABI int wcscoll_l(const wchar_t*, const wchar_t*, locale_t);
139+
_LIBCPP_EXPORTED_FROM_ABI size_t wcsxfrm_l(wchar_t*, const wchar_t*, size_t, locale_t);
140+
} // namespace __ibm
141141
#endif // _LIBCPP___LOCALE_DIR_LOCALE_BASE_API_IBM_H

0 commit comments

Comments
 (0)