Skip to content

Commit 787ccfb

Browse files
arichardsonptomsich
authored andcommittedJun 19, 2023
Add clang-format to the pre-commit hooks
This formats the code with clang-format 15 since the pre-commit hook for clang-format 16 would require a newer version of pre-commit.
1 parent 1c2dca9 commit 787ccfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@ repos:
1616
exclude: '.*\.(diff|dump|patch|svg)'
1717
- id: check-yaml
1818
- id: check-added-large-files
19+
- repo: https://github.com/pre-commit/mirrors-clang-format
20+
rev: 'v15.0.7'
21+
hooks:
22+
- id: clang-format
23+
types_or: [c, c++] # Don't try running clang-format on .json files

0 commit comments

Comments
 (0)
Please sign in to comment.