@@ -13,6 +13,7 @@ A pre-commit hook that automatically formats and lints your C/C++ code using `cl
1313- [ Quick Start] ( #quick-start )
1414 - [ Custom Configuration Files] ( #custom-configuration-files )
1515 - [ Custom Clang Tool Version] ( #custom-clang-tool-version )
16+ - [ Clang Tool Wheel CLI] ( #clang-tool-wheel-cli )
1617- [ Output] ( #output )
1718 - [ clang-format Output] ( #clang-format-output )
1819 - [ clang-tidy Output] ( #clang-tidy-output )
@@ -72,6 +73,35 @@ repos:
7273 args: [--checks=.clang-tidy, --version=21] # Specifies version
7374` ` `
7475
76+ # ## Clang Tool Wheel CLI
77+
78+ This package also provides a CLI tool `clang-tools-wheel` to install specific versions of clang-format and clang-tidy wheels directly.
79+
80+ It can automatically resolve and install compatible versions even if no explicit version number is provided.
81+
82+ ` ` ` bash
83+ # Install the package
84+ pip install cpp-linter-hooks
85+
86+ # Install specific version of clang-format
87+ clang-tools-wheel --tool clang-format --version 21
88+ clang-format installed at: /home/sxp/.local/bin/clang-format
89+
90+ # Check clang-format version
91+ /home/sxp/.local/bin/clang-format --version
92+ clang-format version 21.1.2
93+
94+ # Install specific version of clang-tidy
95+ clang-tools-wheel --tool clang-tidy --version 21
96+ clang-tidy installed at: /home/sxp/.local/bin/clang-tidy
97+
98+ # Check clang-tidy version
99+ /home/sxp/.local/bin/clang-tidy --version
100+ LLVM (http://llvm.org/):
101+ LLVM version 21.1.1
102+ Optimized build.
103+ ` ` `
104+
75105# # Output
76106
77107# ## clang-format Output
0 commit comments