From 43ec85d395cce6003274412e695d3a29ad137b83 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Sun, 3 Nov 2024 13:26:09 +0000 Subject: [PATCH] Fix format --- .../KSCrashRecording/Monitors/KSCrashMonitor_CPPException.cpp | 3 ++- .../KSCrashRecording/Monitors/KSCrashMonitor_NSException.m | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/KSCrashRecording/Monitors/KSCrashMonitor_CPPException.cpp b/Sources/KSCrashRecording/Monitors/KSCrashMonitor_CPPException.cpp index cf6841fd..e4183bbb 100644 --- a/Sources/KSCrashRecording/Monitors/KSCrashMonitor_CPPException.cpp +++ b/Sources/KSCrashRecording/Monitors/KSCrashMonitor_CPPException.cpp @@ -78,7 +78,8 @@ static KSStackCursor g_stackCursor; #pragma mark - Callbacks - // ============================================================================ -static KS_NOINLINE void captureStackTrace(void *, std::type_info *tinfo, void (*)(void *)) KS_KEEP_FUNCTION_IN_STACKTRACE +static KS_NOINLINE void captureStackTrace(void *, std::type_info *tinfo, + void (*)(void *)) KS_KEEP_FUNCTION_IN_STACKTRACE { if (tinfo != nullptr && strcmp(tinfo->name(), "NSException") == 0) { return; diff --git a/Sources/KSCrashRecording/Monitors/KSCrashMonitor_NSException.m b/Sources/KSCrashRecording/Monitors/KSCrashMonitor_NSException.m index 6186f10f..2d7bdd78 100644 --- a/Sources/KSCrashRecording/Monitors/KSCrashMonitor_NSException.m +++ b/Sources/KSCrashRecording/Monitors/KSCrashMonitor_NSException.m @@ -56,7 +56,7 @@ // ============================================================================ static KS_NOINLINE void initStackCursor(KSStackCursor *cursor, NSException *exception, uintptr_t *callstack, - BOOL isUserReported) KS_KEEP_FUNCTION_IN_STACKTRACE + BOOL isUserReported) KS_KEEP_FUNCTION_IN_STACKTRACE { // Use stacktrace from NSException if present, // otherwise use current thread (can happen for user-reported exceptions). @@ -92,7 +92,7 @@ static KS_NOINLINE void initStackCursor(KSStackCursor *cursor, NSException *exce * @param exception The exception that was raised. */ static KS_NOINLINE void handleException(NSException *exception, BOOL isUserReported, - BOOL logAllThreads) KS_KEEP_FUNCTION_IN_STACKTRACE + BOOL logAllThreads) KS_KEEP_FUNCTION_IN_STACKTRACE { KSLOG_DEBUG(@"Trapped exception %@", exception); if (g_isEnabled) {