summaryrefslogtreecommitdiff
path: root/misc/hooks/pre-commit-clang-format
AgeCommit message (Collapse)Author
2021-02-17Dynamically load libudev.so.1 on Linux if `udev=yes`Rémi Verschelde
This makes it possibly to run Linux binaries compiled with udev support on Linux systems which do not provide udev (typically systemd-less distros). If udev is missing, we fall back to parsing `/dev/input` like when compiled without udev support (`udev=no`). Also adding some verbose debug statements to know which method we're using when debugging Linux joypad issues. The libudev so wrappers were generated on Mageia 8 with libudev 246.9 using https://github.com/hpvb/dynload-wrapper: ``` ./generate-wrapper.py --include /usr/include/libudev.h --sys-include '<libudev.h>' \ --soname libudev.so.1 --init-name libudev --omit-prefix gnu_ \ --output-header libudev-so_wrap.h --output-implementation libudev-so_wrap.c ```
2021-01-12Check for clang-format version in the pre-commit hookHugo Locurcio
Different clang-format versions may result in different formatting. Therefore, it's recommended to use the same version as used in CI.
2020-04-24Git Hooks: Suppress "which" error messages.bruvzg
2020-04-21Git Hooks: Add support for GUI git clients.bruvzg
[ci skip]
2020-03-30Hooks: Use pygmentize if available to visualize diffRémi Verschelde
2020-03-30Hooks: Add pre-commit hook for psf/black formattingRémi Verschelde
2019-09-04Split the Android platform java logic into an Android library module (`lib`) ↵fhuya
and an application module (`app`). The application module `app` serves double duties of providing the prebuilt Godot binaries ('android_debug.apk', 'android_release.apk') and the Godot custom build template ('android_source.zip').
2019-08-27Style: Don't apply clang-format to platform/android/java/src/comRémi Verschelde
2018-10-02Style: Fix clang-format pre-commit hook for java and glslRémi Verschelde
2018-08-27Style: Enable clang-format on GLSL shadersRémi Verschelde
As of clang-format 6.0.1, putting the `/* clang-format off */` hint around our "invalid" `[vertex]` and `[shader]` statements isn't enough to prevent a bogus indent of the next comments and first valid statement, so we need to enclose that first valid statement in the unformatted chunk.
2018-03-06Change shebang of pre-commit-clang-format hook to make it portablerobfram
The default one is "#!/bin/bash", but BSD systems doesn't have bash in that path. For portability reasons, it should be changed to "#!/usr/bin/env bash". More info: https://en.wikipedia.org/wiki/Shebang_%28Unix%29#Portability
2017-12-10Style: Apply clang-format to Java filesRémi Verschelde
Only those from org/godotengine/godot though, not the thirdparty ones.
2017-09-02Fix typos 'a' and 'an'Poommetee Ketson
2017-04-09squish: Update to upstream version 1.15Rémi Verschelde
Also fix clang-format pre-commit hook to ignore thirdparty files.
2017-04-09Style: Apply clang-format (3.9.1) to Obj-C++ filesRémi Verschelde
2017-02-12clang-format: Add pre-commit hookRémi Verschelde
Derived from https://github.com/githubbrowser/Pre-commit-hooks and https://gitlab.cern.ch/GeantV/geant/blob/master/hooks/pre-commit-clang-format