Skip to content

Commit

Permalink
clang-format changes after updating to version 15
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus committed Dec 7, 2022
1 parent 1c34dcb commit 748b66f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/sentry_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ typedef HANDLE sentry_threadid_t;
typedef struct sentry__winmutex_s sentry_mutex_t;
# define SENTRY__MUTEX_INIT \
{ \
INIT_ONCE_STATIC_INIT, { 0 } \
INIT_ONCE_STATIC_INIT, \
{ \
0 \
} \
}
# define sentry__mutex_init(Lock) sentry__winmutex_init(Lock)
# define sentry__mutex_lock(Lock) sentry__winmutex_lock(Lock)
Expand Down
10 changes: 4 additions & 6 deletions tests/unit/test_value.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,11 @@ SENTRY_TEST(value_string)
SENTRY_TEST(value_unicode)
{
// https://xkcd.com/1813/ :-)
sentry_value_t val
= sentry_value_new_string("őá…–🤮🚀¿ 한글 테스트 \a\v");
TEST_CHECK_STRING_EQUAL(sentry_value_as_string(val),
"őá…–🤮🚀¿ 한글 테스트 \a\v");
sentry_value_t val = sentry_value_new_string("őá…–🤮🚀¿ 한글 테스트 \a\v");
TEST_CHECK_STRING_EQUAL(
sentry_value_as_string(val), "őá…–🤮🚀¿ 한글 테스트 \a\v");
// json does not need to escape unicode, except for control characters
TEST_CHECK_JSON_VALUE(
val, "\"őá…–🤮🚀¿ 한글 테스트 \\u0007\\u000b\"");
TEST_CHECK_JSON_VALUE(val, "\"őá…–🤮🚀¿ 한글 테스트 \\u0007\\u000b\"");
sentry_value_decref(val);
char zalgo[] = "z̴̢̈͜ä̴̺̟́ͅl̸̛̦͎̺͂̃̚͝g̷̦̲͊͋̄̌͝o̸͇̞̪͙̞͌̇̀̓̏͜";
val = sentry_value_new_string(zalgo);
Expand Down

0 comments on commit 748b66f

Please sign in to comment.