Install clang-tools (clang-format, clang-tidy) with pip
Project description
Install clang-format, clang-tidy, clang-query, and clang-apply-replacements binaries with clang-tools CLI.
Features
Binaries are statically linked for improved portability.
Binaries can be specified installed for increased flexibility.
Binaries are checked with SHA512 checksum. This ensures:
Downloads are not corrupted.
Old binary builds can be updated.
Installed binaries are symbolically linked for better cross-platform usage. For example (on Windows), the clang-tidy-13.exe binary executable can also be invoked with the symbolic link titled clang-tidy.exe
Customizable install path.
Install clang-tools CLI
Install clang-tools command with pip
pip install clang-tools
Install clang-tools from git repo
pip install git+https://github.com/cpp-linter/clang-tools-pip.git@main
CLI Usage
For a list of supported Command Line Interface options, see the CLI documentation
Examples
Use clang-tools command to install version 13 binaries.
clang-tools --install 13
Or install to a specified directory
clang-tools --install 13 --directory .
Or install a specified tool, such as clang-format and clang-query version 14.
clang-tools --install 14 --tool clang-format clang-query
If the installed directory is in your path, you can run the installed tools.
clang-format-13 --version
clang-format version 13.0.0
clang-tidy-13 --version
LLVM (http://llvm.org/):
LLVM version 13.0.0
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: skylake
Supported versions
clang-format, clang-tidy, clang-query, clang-apply-replacements
Version |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Linux |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
Windows |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
macOS |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
Thanks to the project clang-tools-static-binaries. We now used the fork repository that fixed the clang-tidy v14+ Segmentation fault (core dumped). see #56 for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file clang_tools-0.13.1-py3-none-any.whl
.
File metadata
- Download URL: clang_tools-0.13.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01b982428108ddb1f349c6979f342715268b0a4d48289054618df608c5230fc3 |
|
MD5 | ef4f9115baea7e2a61b5c853bcd8c58a |
|
BLAKE2b-256 | e878ed27f9400ea7bf7f6984aaae2099b17ad541f8842939fcf1c7955d34b506 |