clang-format

This commit is contained in:
IRainman 2025-05-06 18:15:43 +03:00
parent d5c05e51af
commit 99d769db5b
4 changed files with 10 additions and 8 deletions

View File

@ -618,7 +618,8 @@ typedef struct {
} lib_symbol; } lib_symbol;
#define lib_nelems(x) (sizeof(x) / sizeof((x)[0])) #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[] = { static const lib_symbol lib_symbols_kperf[] = {
lib_symbol_def(kpc_pmu_version), lib_symbol_def(kpc_pmu_version),

View File

@ -78,7 +78,8 @@ template <typename UC> struct parse_options_t {
FASTFLOAT_CONSTEXPR20 explicit parse_options_t( FASTFLOAT_CONSTEXPR20 explicit parse_options_t(
chars_format const fmt = chars_format::general, UC const dot = UC('.'), chars_format const fmt = chars_format::general, UC const dot = UC('.'),
chars_format_t const b = 10) noexcept 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 #ifdef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
// static_assert(b >= 2 && b <= 36); // static_assert(b >= 2 && b <= 36);
#endif #endif

View File

@ -54,7 +54,7 @@ float cygwin_strtof_l(char const *start, char **end) {
class RandomEngine { class RandomEngine {
public: public:
RandomEngine() = delete; RandomEngine() = delete;
RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed) {}; RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed){};
uint64_t next() { uint64_t next() {
// Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h // Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h

View File

@ -54,7 +54,7 @@ float cygwin_strtof_l(char const *start, char **end) {
class RandomEngine { class RandomEngine {
public: public:
RandomEngine() = delete; RandomEngine() = delete;
RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed) {}; RandomEngine(uint64_t new_seed) : wyhash64_x_(new_seed){};
uint64_t next() { uint64_t next() {
// Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h // Adapted from https://github.com/wangyi-fudan/wyhash/blob/master/wyhash.h