Skip to content

Commit df8bada

Browse files
committed
fixed pre-commit-config.yaml
1 parent 67cbdf8 commit df8bada

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ repos:
1818
- id: detect-private-key
1919
files: (?!.*third_party)^.*$ | (?!.*book)^.*$
2020
- id: end-of-file-fixer
21+
- repo: local
22+
hooks:
23+
- id: clang-format-with-version-check
24+
name: clang-format
25+
description: Format files with ClangFormat.
26+
entry: bash ./tools/codestyle/clang_format.hook -i
27+
language: system
28+
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$
2129
- repo: local
2230
hooks:
2331
- id: cpplint-cpp-source

0 commit comments

Comments
 (0)