From 6aaedb813fa11ba0679c3051bc2eb28646b9506c Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 30 Aug 2025 16:53:58 -0700 Subject: Update to SDL3 --- .../SDL-3.2.20/build-scripts/clang-format-src.sh | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 src/contrib/SDL-3.2.20/build-scripts/clang-format-src.sh (limited to 'src/contrib/SDL-3.2.20/build-scripts/clang-format-src.sh') diff --git a/src/contrib/SDL-3.2.20/build-scripts/clang-format-src.sh b/src/contrib/SDL-3.2.20/build-scripts/clang-format-src.sh new file mode 100755 index 0000000..bc0defc --- /dev/null +++ b/src/contrib/SDL-3.2.20/build-scripts/clang-format-src.sh @@ -0,0 +1,39 @@ +#!/bin/sh + +cd "$(dirname $0)/../src" + +echo "Running clang-format in $(pwd)" + +find . -regex '.*\.[chm]p*' -exec clang-format -i {} \; + +# Revert third-party code +git checkout \ + events/imKStoUCS.* \ + hidapi \ + joystick/controller_type.c \ + joystick/controller_type.h \ + joystick/hidapi/steam/controller_constants.h \ + joystick/hidapi/steam/controller_structs.h \ + libm \ + stdlib/SDL_malloc.c \ + stdlib/SDL_qsort.c \ + stdlib/SDL_strtokr.c \ + video/khronos \ + video/x11/edid.h \ + video/x11/edid-parse.c \ + video/x11/xsettings-client.* \ + video/yuv2rgb +clang-format -i hidapi/SDL_hidapi.c + +# Revert generated code +git checkout \ + dynapi/SDL_dynapi_overrides.h \ + dynapi/SDL_dynapi_procs.h \ + render/*/*Shader*.h \ + render/metal/SDL_shaders_metal_*.h \ + render/vitagxm/SDL_render_vita_gxm_shaders.h \ + video/directx/SDL_d3d12_xbox_cmacros.h \ + video/directx/d3d12.h \ + video/directx/d3d12sdklayers.h \ + +echo "clang-format complete!" -- cgit v1.2.3