Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ Use -header-filter=.* to display errors from all non-system headers. Use -system
rev: v1.1.0
hooks:
- id: clang-format
args: [--style=file, --version=20]
args: [--style=file, --version=21]
files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$ # Limits to specific dirs and file types
- id: clang-tidy
args: [--checks=.clang-tidy, --version=20]
args: [--checks=.clang-tidy, --version=21]
files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$
```

Expand Down
1 change: 1 addition & 0 deletions cpp_linter_hooks/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def get_version_from_dependency(tool: str) -> Optional[str]:
"19.1.0",
"19.1.0.1",
"20.1.0",
"21.1.0",
]


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ tracker = "https://github.com/cpp-linter/cpp-linter-hooks/issues"
# only clang tools can added to this section to make hooks work
tools = [
"clang-format==21.1.0",
"clang-tidy==20.1.0",
"clang-tidy==21.1.0",
]

dev = [
Expand Down
2 changes: 1 addition & 1 deletion testing/pre-commit-config-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ repos:
- id: clang-format
args: [--style=file, --version=21]
- id: clang-tidy
args: [--checks=.clang-tidy, --version=20] # clang-tidy does not support version 21
args: [--checks=.clang-tidy, --version=21]
Loading