Skip to content

Commit ee79fe6

Browse files
committed
Running clang-format.
1 parent c23929f commit ee79fe6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

include/fast_float/ascii_number.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,7 @@ bool simd_parse_if_eight_digits_unrolled(UC const *, uint64_t &) {
224224
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
225225
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
226226
loop_parse_if_eight_digits(UC const *&p, UC const *const pend, uint64_t &i) {
227-
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) {
228-
return;
229-
}
227+
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) { return; }
230228
while (((pend - p) >= 8) &&
231229
simd_parse_if_eight_digits_unrolled(
232230
p, i)) { // in rare cases, this will overflow, but that's ok
@@ -249,9 +247,7 @@ loop_parse_if_eight_digits(char const *&p, char const *const pend,
249247
template <typename UC, FASTFLOAT_ENABLE_IF(!std::is_same<UC, char>::value) = 0>
250248
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void
251249
loop_parse_if_digits(UC const *&p, UC const *const pend, uint64_t &i) {
252-
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) {
253-
return;
254-
}
250+
FASTFLOAT_IF_CONSTEXPR(!has_simd_opt<UC>()) { return; }
255251
while (((pend - p) >= 8) &&
256252
simd_parse_if_eight_digits_unrolled(
257253
p, i)) { // in rare cases, this will overflow, but that's ok

include/fast_float/constexpr_feature_detect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#endif
1616

1717
#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)
18-
#define FASTFLOAT_IF_CONSTEXPR if constexpr
18+
#define FASTFLOAT_IF_CONSTEXPR if constexpr
1919
#else
2020
#define FASTFLOAT_IF_CONSTEXPR if
2121
#endif

include/fast_float/float_common.h

+6-2
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,16 @@ using parse_options = parse_options_t<char>;
189189

190190
#ifndef FASTFLOAT_ASSERT
191191
#define FASTFLOAT_ASSERT(x) \
192-
{ ((void)(x)); }
192+
{ \
193+
((void)(x)); \
194+
}
193195
#endif
194196

195197
#ifndef FASTFLOAT_DEBUG_ASSERT
196198
#define FASTFLOAT_DEBUG_ASSERT(x) \
197-
{ ((void)(x)); }
199+
{ \
200+
((void)(x)); \
201+
}
198202
#endif
199203

200204
// rust style `try!()` macro, or `?` operator

0 commit comments

Comments
 (0)