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 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
Original file line number Diff line number Diff line change 1010LOG = 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
1616def is_installed (tool_name : str , version : str ) -> Optional [Path ]:
Original file line number Diff line number Diff line change 66from cpp_linter_hooks .util import ensure_installed , DEFAULT_CLANG_VERSION
77
88
9- VERSIONS = [None , "16 " ]
9+ VERSIONS = [None , "18 " ]
1010TOOLS = ["clang-format" , "clang-tidy" ]
1111
1212
You can’t perform that action at this time.
0 commit comments