summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2021-04-05 13:19:19 +0200
committerJoel Rosdahl <joel@rosdahl.net>2021-04-05 13:19:19 +0200
commit661b635de6d65c27b57be22ecc0e3feacc45401e (patch)
treea57616bf23c8a2d5da89667d000c85818e2cec31 /.gitignore
parent0f1d99f75f7247d214b53173c66c9b8d24fcae74 (diff)
downloadccache-661b635de6d65c27b57be22ecc0e3feacc45401e.tar.gz
Use Clang-Format executable from muttleyxd/clang-tools-static-binaries
misc/format-files now executes misc/clang-format, which works like this: 1. If environment variable CLANG_FORMAT is set, execute $CLANG_FORMAT. 2. Otherwise, if <ccache-top-dir>/misc/.clang-format-exe exists, execute that program. 3. Otherwise, download a statically linked clang-format executable, verify its integrity, place it in <ccache-top-dir>/misc/.clang-format-exe and execute it. This makes it possible for us to lock Clang-Format to version 10 and remove most “// clang-format off/on” comments.
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 9b69afd5..74db15fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,9 @@
# Typical build directories
/build*/
+# Downloaded tools
+misc/.clang-format-exe
+
# Emacs save files
*~