aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorJan Sucan <jan@jansucan.com>2020-12-25 12:49:10 +0100
committerJan Sucan <jan@jansucan.com>2020-12-25 12:49:10 +0100
commite4ebac4e4dd5b8bc9c86de11489b7f267bf48814 (patch)
tree2869a98501f80598c34d3055474684006ed78652 /.pre-commit-config.yaml
parent42c87a3dd2b926905db944ab7637d74db0d88ae6 (diff)
Add clang-format pre-commit hook
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 0e16935..6f3cb11 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -6,3 +6,8 @@ repos:
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
+- repo: git://github.com/doublify/pre-commit-clang-format
+ rev: master
+ hooks:
+ - id: clang-format
+ args: [--style=file]