Install clang-tools (clang-format, clang-tidy) with pip
Project description
clang-tools
Install clang-tools binaries (clang-format, clang-tidy) with pip.
Install
Install clang-tools
command with pip
# install `clang-tools` from 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
$ clang-tools --help
usage: clang-tools [-h] [-i INSTALL] [-d DIRECTORY]
optional arguments:
-h, --help show this help message and exit
-i INSTALL, --install INSTALL
Install clang-tools with specific version. default is 12.
-d DIRECTORY, --directory DIRECTORY
The directory where is the clang-tools install.
Use clang-tools
command to install version 13 binaries.
$ clang-tools --install 13
# Or install to a specified directory
$ clang-tools --install 13 --directory .
$ 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 issue: clang-tidy version 14 has Segmentation fault (core dumped).
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 Distribution
clang_tools-0.2.4.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for clang_tools-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71bd857dc629748fcea81f2af769f06ee080ac009c6bd2cded7a2354fc89a3e9 |
|
MD5 | 555709c42faf2392c4de0e29554c1329 |
|
BLAKE2b-256 | 160a867d4f3d9fc971eb13ebd5662d1b70f9f21758c7cf1d0bee522ba3e4ac75 |