File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 52
52
rev: v0.8.1
53
53
hooks:
54
54
- id: clang-format
55
- args: [--style=file, --version=16 ] # Specifies version
55
+ args: [--style=file, --version=18 ] # Specifies version
56
56
- id: clang-tidy
57
- args: [--checks=.clang-tidy, --version=16 ] # Specifies version
57
+ args: [--checks=.clang-tidy, --version=18 ] # Specifies version
58
58
` ` `
59
59
60
60
> [!IMPORTANT]
@@ -66,10 +66,10 @@ repos:
66
66
rev: v0.8.1
67
67
hooks:
68
68
- id: clang-format
69
- args: [--style=file, --version=16 ]
69
+ args: [--style=file, --version=18 ]
70
70
files: ^(src|include)/.*\. (cpp|cc|cxx|h|hpp)$ # limit the scope
71
71
- id: clang-tidy
72
- args: [--checks=.clang-tidy, --version=16 ]
72
+ args: [--checks=.clang-tidy, --version=18 ]
73
73
files: ^(src|include)/.*\. (cpp|cc|cxx|h|hpp)$
74
74
` ` `
75
75
Original file line number Diff line number Diff line change 10
10
LOG = logging .getLogger (__name__ )
11
11
12
12
13
- DEFAULT_CLANG_VERSION = "16"
13
+ DEFAULT_CLANG_VERSION = "18" # Default version for clang tools, can be overridden
14
14
15
15
16
16
def is_installed (tool_name : str , version : str ) -> Optional [Path ]:
Original file line number Diff line number Diff line change 6
6
from cpp_linter_hooks .util import ensure_installed , DEFAULT_CLANG_VERSION
7
7
8
8
9
- VERSIONS = [None , "16 " ]
9
+ VERSIONS = [None , "18 " ]
10
10
TOOLS = ["clang-format" , "clang-tidy" ]
11
11
12
12
You can’t perform that action at this time.
0 commit comments