add pre-commit format hook

This commit is contained in:
nmzik
2026-07-18 06:35:04 +02:00
parent da6cee924b
commit 387f9e3cde
2 changed files with 19 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.3
hooks:
- id: clang-format
name: clang-format (C++)
files: ^src/.*\.(?:cpp|h|inc)$
types: [file]