🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
773 B

  1. #!/bin/sh
  2. cd "$(dirname $0)/../src"
  3. echo "Running clang-format in $(pwd)"
  4. find . -regex '.*\.[chm]p*' -exec clang-format -i {} \;
  5. # Revert third-party code
  6. git checkout \
  7. events/imKStoUCS.* \
  8. hidapi \
  9. joystick/controller_type.c \
  10. joystick/controller_type.h \
  11. joystick/hidapi/steam/controller_constants.h \
  12. joystick/hidapi/steam/controller_structs.h \
  13. libm \
  14. stdlib/SDL_malloc.c \
  15. stdlib/SDL_qsort.c \
  16. stdlib/SDL_strtokr.c \
  17. video/arm \
  18. video/khronos \
  19. video/x11/edid-parse.c \
  20. video/yuv2rgb
  21. clang-format -i hidapi/SDL_hidapi.c
  22. # Revert generated code
  23. git checkout dynapi/SDL_dynapi_overrides.h
  24. git checkout dynapi/SDL_dynapi_procs.h
  25. git checkout render/metal/SDL_shaders_metal_*.h
  26. echo "clang-format complete!"