Skip to content

Commit 8d975fe

Browse files
committed
Add include-what-you-use
1 parent 8610937 commit 8d975fe

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@ repos:
1919
hooks:
2020
- id: clang-format
2121
types_or: [c++]
22-
# - repo: https://github.com/pocc/pre-commit-hooks
23-
# rev: v1.3.5
24-
# hooks:
25-
# - id: clang-tidy
26-
# args: [-p=build]
27-
# files: \.(h|cpp)$
28-
# - id: oclint
29-
# - id: cppcheck
30-
# - id: cpplint
31-
# - id: include-what-you-use
3222
- repo: local
3323
hooks:
3424
- id: cppcheck
@@ -48,6 +38,15 @@ repos:
4838
--error-exitcode=1,
4939
]
5040
files: \.(h|cpp)$
41+
- id: include-what-you-use
42+
name: include-what-you-use
43+
entry: iwyu_tool
44+
language: system
45+
args:
46+
[
47+
-p=build
48+
]
49+
files: \.(h|cpp)$
5150
- id: clang-tidy
5251
name: clang-tidy
5352
entry: clang-tidy

0 commit comments

Comments
 (0)