Install clang-tools (clang-format, clang-tidy) with pip
Project description
Install clang-tools binaries (clang-format, clang-tidy) with pip.
Features
Binaries are statically linked for improved portability.
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
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
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 .
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
Version |
14 |
13 |
12.0.1 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3.9 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Linux |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
Windows |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
macOS |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
clang-tidy
Version |
14 |
13 |
12.0.1 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3.9 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Linux |
❌ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
Windows |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
macOS |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
✔️ |
Know issues:
clang-tidy-14 has Segmentation fault on Ubuntu 22.02.
clang-format-14 is over 1 GB for MacOSX
Thanks to the project clang-tools-static-binaries for all the binaries.
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
Hashes for clang_tools-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f21312891b94b38bb5a25e4c286457d21a30ea6d5b1cb2c90eb01b3b1cba6d1 |
|
MD5 | a18f605eaf5a4c38b2e4f3a9b0e98654 |
|
BLAKE2b-256 | fde05759b3a46fe8ab8dc98dcbdf6b368243ff03e1d7a10f959d72fecaf538fc |