Skip to content

Commit 7b05e57

Browse files
authored
feat: support clang-tidy==21.1.0 (#100)
* feat: support clang-tidy==21.1.0 * Update testing/pre-commit-config-version.yaml
1 parent f5896e2 commit 7b05e57

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ Use -header-filter=.* to display errors from all non-system headers. Use -system
154154
rev: v1.1.0
155155
hooks:
156156
- id: clang-format
157-
args: [--style=file, --version=20]
157+
args: [--style=file, --version=21]
158158
files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$ # Limits to specific dirs and file types
159159
- id: clang-tidy
160-
args: [--checks=.clang-tidy, --version=20]
160+
args: [--checks=.clang-tidy, --version=21]
161161
files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$
162162
```
163163

cpp_linter_hooks/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
119119
"19.1.0",
120120
"19.1.0.1",
121121
"20.1.0",
122+
"21.1.0",
122123
]
123124

124125

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ tracker = "https://github.com/cpp-linter/cpp-linter-hooks/issues"
4949
# only clang tools can added to this section to make hooks work
5050
tools = [
5151
"clang-format==21.1.0",
52-
"clang-tidy==20.1.0",
52+
"clang-tidy==21.1.0",
5353
]
5454

5555
dev = [

testing/pre-commit-config-version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ repos:
4040
- id: clang-format
4141
args: [--style=file, --version=21]
4242
- id: clang-tidy
43-
args: [--checks=.clang-tidy, --version=20] # clang-tidy does not support version 21
43+
args: [--checks=.clang-tidy, --version=21]

0 commit comments

Comments
 (0)