summaryrefslogtreecommitdiff
path: root/misc/hooks/pre-commit-clang-format
AgeCommit message (Collapse)Author
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