From 99d769db5bbb0c5f65c0b4511f47640c8841dd55 Mon Sep 17 00:00:00 2001 From: IRainman Date: Tue, 6 May 2025 18:15:43 +0300 Subject: [PATCH] clang-format --- benchmarks/apple_arm_events.h | 3 ++- include/fast_float/float_common.h | 11 ++++++----- tests/random_string.cpp | 2 +- tests/short_random_string.cpp | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/benchmarks/apple_arm_events.h b/benchmarks/apple_arm_events.h index 74d233c..f127d14 100644 --- a/benchmarks/apple_arm_events.h +++ b/benchmarks/apple_arm_events.h @@ -618,7 +618,8 @@ typedef struct { } lib_symbol; #define lib_nelems(x) (sizeof(x) / sizeof((x)[0])) -#define lib_symbol_def(name) {#name, (void **)&name} +#define lib_symbol_def(name) \ + { #name, (void **)&name } static const lib_symbol lib_symbols_kperf[] = { lib_symbol_def(kpc_pmu_version), diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index c0bf8a1..9afdc80 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -78,14 +78,15 @@ template struct parse_options_t { FASTFLOAT_CONSTEXPR20 explicit parse_options_t( chars_format const fmt = chars_format::general, UC const dot = UC('.'), chars_format_t const b = 10) noexcept - : format(fmt), decimal_point(dot), base(b) { + : format(fmt), decimal_point(dot), + base(b){ #ifdef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN - // static_assert(b >= 2 && b <= 36); + // static_assert(b >= 2 && b <= 36); #endif - } + } - /** Which number formats are accepted */ - chars_format const format; + /** Which number formats are accepted */ + chars_format const format; /** The character used as decimal point */ UC const decimal_point; /** The base used for integers */ diff --git a/tests/random_string.cpp b/tests/random_string.cpp index cb5b071..940cd7a 100644 --- a/tests/random_string.cpp +++ b/tests/random_string.cpp @@ -54,7 +54,7 @@ float cygwin_strtof_l(char const *start, char **end) { class RandomEngine { public: RandomEngine() = delete; - RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed) {}; + RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed){}; uint64_t next() { // Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h diff --git a/tests/short_random_string.cpp b/tests/short_random_string.cpp index f47509d..9008bf3 100644 --- a/tests/short_random_string.cpp +++ b/tests/short_random_string.cpp @@ -54,7 +54,7 @@ float cygwin_strtof_l(char const *start, char **end) { class RandomEngine { public: RandomEngine() = delete; - RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed) {}; + RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed){}; uint64_t next() { // Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h