Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Format code with clang-format 18.1.5 #3935

Merged
merged 1 commit into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading