Skip to content

Commit 67c749d

Browse files
committed
added clang-format checking in pre-commit
1 parent 673fbda commit 67c749d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
31
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.2.0
6-
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.2.0
4+
hooks:
5+
- id: trailing-whitespace
6+
id: end-of-file-fixer
7+
id: check-yaml
8+
id: check-added-large-files
119

1210
# CMake formatting
1311
- repo: https://github.com/cheshirekow/cmake-format-precommit
@@ -17,3 +15,10 @@ repos:
1715
additional_dependencies: [pyyaml]
1816
types: [file]
1917
files: (\.cmake|CMakeLists.txt)(.in)?$
18+
19+
# Clang format the codebase automatically
20+
- repo: https://github.com/pre-commit/mirrors-clang-format
21+
rev: "v13.0.1"
22+
hooks:
23+
- id: clang-format
24+
types_or: [c++, c]

0 commit comments

Comments
 (0)