Skip to content

Commit

Permalink
chore: Format code with clang-format 18.1.5 (#3935)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann authored May 3, 2024
1 parent 8aec30e commit ca507ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
15 changes: 3 additions & 12 deletions Sources/SentryCrash/Recording/Tools/SentryCrashSignalInfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit ca507ec

Please sign in to comment.