From ca507eccc67597d1f2c0645c8f84942879046b32 Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Fri, 3 May 2024 14:15:37 +0200 Subject: [PATCH] chore: Format code with clang-format 18.1.5 (#3935) --- .../Recording/Monitors/SentryCrashMonitorType.c | 5 +---- .../Recording/Tools/SentryCrashSignalInfo.c | 15 +++------------ 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitorType.c b/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitorType.c index b14aead36d9..f40c7327ada 100644 --- a/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitorType.c +++ b/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitorType.c @@ -31,10 +31,7 @@ static const struct { const SentryCrashMonitorType type; const char *const name; } g_monitorTypes[] = { -#define MONITORTYPE(NAME) \ - { \ - NAME, #NAME \ - } +#define MONITORTYPE(NAME) { NAME, #NAME } MONITORTYPE(SentryCrashMonitorTypeMachException), MONITORTYPE(SentryCrashMonitorTypeSignal), MONITORTYPE(SentryCrashMonitorTypeCPPException), diff --git a/Sources/SentryCrash/Recording/Tools/SentryCrashSignalInfo.c b/Sources/SentryCrash/Recording/Tools/SentryCrashSignalInfo.c index 8d27ed32597..c52897917b1 100644 --- a/Sources/SentryCrash/Recording/Tools/SentryCrashSignalInfo.c +++ b/Sources/SentryCrash/Recording/Tools/SentryCrashSignalInfo.c @@ -42,10 +42,7 @@ typedef struct { const int numCodes; } SentryCrashSignalInfo; -#define ENUM_NAME_MAPPING(A) \ - { \ - A, #A \ - } +#define ENUM_NAME_MAPPING(A) { A, #A } static const SentryCrashSignalCodeInfo g_sigIllCodes[] = { #ifdef ILL_NOOP @@ -98,14 +95,8 @@ static const SentryCrashSignalCodeInfo g_sigSegVCodes[] = { ENUM_NAME_MAPPING(SEGV_ACCERR), }; -#define SIGNAL_INFO(SIGNAL, CODES) \ - { \ - SIGNAL, #SIGNAL, CODES, sizeof(CODES) / sizeof(*CODES) \ - } -#define SIGNAL_INFO_NOCODES(SIGNAL) \ - { \ - SIGNAL, #SIGNAL, 0, 0 \ - } +#define SIGNAL_INFO(SIGNAL, CODES) { SIGNAL, #SIGNAL, CODES, sizeof(CODES) / sizeof(*CODES) } +#define SIGNAL_INFO_NOCODES(SIGNAL) { SIGNAL, #SIGNAL, 0, 0 } static const SentryCrashSignalInfo g_fatalSignalData[] = { SIGNAL_INFO_NOCODES(SIGABRT),