Skip to content

Commit a2de6f1

Browse files
Add clang-format pre-commit step
1 parent 8794a84 commit a2de6f1

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ BasedOnStyle: Mozilla
33
ColumnLimit: '120'
44
IndentWidth: '4'
55
TabWidth: '4'
6+
SortIncludes: false
67
...

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ repos:
1414
rev: v0.13.1
1515
hooks:
1616
- id: ruff-format
17+
- repo: https://github.com/pre-commit/mirrors-clang-format
18+
rev: v20.1.0
19+
hooks:
20+
- id: clang-format
21+
files: \.(c|cc|cpp|cxx|h|hpp|ih|i)$

0 commit comments

Comments
 (0)