Skip to content

Commit eee1d44

Browse files
tomerdbzgalnoam
authored andcommitted
issue: 4636978 add clang-format pre-commit hook
Add a pre-commit hook that automatically formats C/C++ source files using clang-format. This ensures consistent code formatting across the project and reduces manual formatting overhead for developers. Signed-off-by: Tomer Cabouly <[email protected]> swuash
1 parent 3835320 commit eee1d44

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-clang-format
3+
rev: v15.0.7
4+
hooks:
5+
- id: clang-format
6+
args: ['-style=file:contrib/jenkins_tests/style.conf']

0 commit comments

Comments
 (0)