Skip to content

Commit 9e705e5

Browse files
authored
chore: bump clang-tools default version to 18 (#73)
1 parent c1fb2f3 commit 9e705e5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ repos:
5252
rev: v0.8.1
5353
hooks:
5454
- id: clang-format
55-
args: [--style=file, --version=16] # Specifies version
55+
args: [--style=file, --version=18] # Specifies version
5656
- id: clang-tidy
57-
args: [--checks=.clang-tidy, --version=16] # Specifies version
57+
args: [--checks=.clang-tidy, --version=18] # Specifies version
5858
```
5959

6060
> [!IMPORTANT]
@@ -66,10 +66,10 @@ repos:
6666
rev: v0.8.1
6767
hooks:
6868
- id: clang-format
69-
args: [--style=file, --version=16]
69+
args: [--style=file, --version=18]
7070
files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$ # limit the scope
7171
- id: clang-tidy
72-
args: [--checks=.clang-tidy, --version=16]
72+
args: [--checks=.clang-tidy, --version=18]
7373
files: ^(src|include)/.*\.(cpp|cc|cxx|h|hpp)$
7474
```
7575

cpp_linter_hooks/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
LOG = logging.getLogger(__name__)
1111

1212

13-
DEFAULT_CLANG_VERSION = "16"
13+
DEFAULT_CLANG_VERSION = "18" # Default version for clang tools, can be overridden
1414

1515

1616
def is_installed(tool_name: str, version: str) -> Optional[Path]:

tests/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from cpp_linter_hooks.util import ensure_installed, DEFAULT_CLANG_VERSION
77

88

9-
VERSIONS = [None, "16"]
9+
VERSIONS = [None, "18"]
1010
TOOLS = ["clang-format", "clang-tidy"]
1111

1212

0 commit comments

Comments
 (0)