From 87c5600a908091e34c09fc3690211b65c4a267c1 Mon Sep 17 00:00:00 2001 From: magic-akari Date: Sat, 20 Jul 2024 17:41:36 +0800 Subject: [PATCH] chore: Update LLVM version to 17.0.1 --- CMakeLists.txt | 4 ++-- test_data/main.c.snap | 12 ++++++------ test_data/main.cs.snap | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8782cb1..0b1099a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,11 @@ if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "MinSizeRel") endif() -set(LLVM_VERSION "16.0.6") +set(LLVM_VERSION "17.0.1") FetchContent_Declare(llvm_project URL "https://github.com/llvm/llvm-project/releases/download/llvmorg-${LLVM_VERSION}/llvm-project-${LLVM_VERSION}.src.tar.xz" - URL_HASH SHA256=ce5e71081d17ce9e86d7cbcfa28c4b04b9300f8fb7e78422b1feb6bc52c3028e + URL_HASH SHA256=b0e42aafc01ece2ca2b42e3526f54bebc4b1f1dc8de6e34f46a0446a13e882b9 TLS_VERIFY TRUE DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) diff --git a/test_data/main.c.snap b/test_data/main.c.snap index 78fc6fa..3536139 100644 --- a/test_data/main.c.snap +++ b/test_data/main.c.snap @@ -2348,7 +2348,7 @@ static inline BOOL is_math_mode(JSContext *ctx) { #define JS_ATOM_MAX ((1U << 30) - 1) /* return the max count from the hash size */ -#define JS_ATOM_COUNT_RESIZE(n) ((n)*2) +#define JS_ATOM_COUNT_RESIZE(n) ((n) * 2) static inline BOOL __JS_AtomIsConst(JSAtom v) { #if defined(DUMP_LEAKS) && DUMP_LEAKS > 1 @@ -12353,7 +12353,7 @@ js_unary_arith_slow(JSContext *ctx, JSValue *sp, OPCodeEnum op) { goto exception; break; default: - handle_float64 : { + handle_float64: { double d; if (is_math_mode(ctx)) goto handle_bigint; @@ -19364,7 +19364,7 @@ dump_token(JSParseState *s, const JSToken *token) { printf("number: %.14g\n", d); } break; case TOK_IDENT: - dump_atom : { + dump_atom: { char buf[ATOM_GET_STR_BUF_SIZE]; printf("ident: '%s'\n", JS_AtomGetStr(s->ctx, buf, sizeof(buf), token->u.ident.atom)); @@ -20097,7 +20097,7 @@ redo: case '8': case '9': /* number */ - parse_number : { + parse_number: { JSValue ret; const uint8_t *p1; int flags, radix; @@ -20608,7 +20608,7 @@ redo: case '8': case '9': /* number */ - parse_number : { + parse_number: { JSValue ret; int flags, radix; if (!s->ext_json) { @@ -23551,7 +23551,7 @@ static __exception int js_parse_postfix_expr(JSParseState *s, int parse_flags) { goto parse_regexp; case '/': s->buf_ptr--; - parse_regexp : { + parse_regexp: { JSValue str; int ret, backtrace_flags; if (!s->ctx->compile_regexp) diff --git a/test_data/main.cs.snap b/test_data/main.cs.snap index c53eabb..af90314 100644 --- a/test_data/main.cs.snap +++ b/test_data/main.cs.snap @@ -408,7 +408,7 @@ public class Button : ContentControl, ICommandSource, IClickableControl { if (change.Property == CommandProperty) { if (((ILogical)this).IsAttachedToLogicalTree) { - var (oldValue, newValue) = change.GetOldAndNewValue(); + var (oldValue, newValue) = change.GetOldAndNewValue < ICommand ? > (); if (oldValue is ICommand oldCommand) { oldCommand.CanExecuteChanged -= CanExecuteChanged; } @@ -444,7 +444,7 @@ public class Button : ContentControl, ICommandSource, IClickableControl { } else if (change.Property == IsPressedProperty) { UpdatePseudoClasses(); } else if (change.Property == FlyoutProperty) { - var (oldFlyout, newFlyout) = change.GetOldAndNewValue(); + var (oldFlyout, newFlyout) = change.GetOldAndNewValue < FlyoutBase ? > (); // If flyout is changed while one is already open, make sure we // close the old one first