Skip to main content

clang-tidy is a clang-based C++ “linter” tool.

Project description

clang-tidy Python distribution

PyPI Release

This project packages the clang-tidy utility as a Python package. It allows you to install clang-tidy directly from PyPI:

python -m pip install clang-tidy

This projects intends to release a new PyPI package for each major and minor release of clang-tidy.

Use with pipx

You can use pipx to run clang-tidy, as well. For example, pipx run clang-tidy <args> will run clang-tidy without any previous install required on any machine with pipx (including all default GitHub Actions / Azure runners, avoiding requiring a pre-install step or even actions/setup-python).

Building new releases

The clang-tidy-wheel repository provides the logic to build and publish binary wheels of the clang-tidy utility.

In order to add a new release, the following steps are necessary:

On manual triggers, the following input variables are available:

  • use_qemu: Whether to build targets that require emulation (default: true)
  • llvm_version: Override the LLVM version (default: "")
  • wheel_version: Override the wheel packaging version (default "0")
  • deploy_to_testpypi: Whether to deploy to TestPyPI instead of PyPI (default: false)

The repository with the precommit hook is automatically updated using a scheduled Github Actions workflow.

Acknowledgments

This repository extends the great work of several other projects:

  • clang-tidy itself is provided by the LLVM project under the Apache 2.0 License with LLVM exceptions.
  • The build logic is based on scikit-build which greatly reduces the amount of low level code necessary to package clang-tidy.
  • The scikit-build packaging examples of CMake and Ninja were very helpful in packaging clang-tidy.
  • The CI build process is controlled by cibuildwheel which makes building wheels across a number of platforms a pleasant experience (!)

We are grateful for the generous provisioning with CI resources that GitHub currently offers to Open Source projects.

Troubleshooting

To see which clang-tidy binary the package is using you can set CLANG_TIDY_WHEEL_VERBOSE to 1 in your environment.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clang_tidy-19.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distributions

clang_tidy-19.1.0-py2.py3-none-win_amd64.whl (23.1 MB view details)

Uploaded Python 2 Python 3 Windows x86-64

clang_tidy-19.1.0-py2.py3-none-win32.whl (20.1 MB view details)

Uploaded Python 2 Python 3 Windows x86

clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_x86_64.whl (40.8 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.2+ x86-64

clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_i686.whl (45.5 MB view details)

Uploaded Python 2 Python 3 musllinux: musl 1.2+ i686

clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (37.7 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ x86-64

clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl (43.1 MB view details)

Uploaded Python 2 Python 3 manylinux: glibc 2.17+ i686

clang_tidy-19.1.0-py2.py3-none-macosx_11_0_arm64.whl (26.7 MB view details)

Uploaded Python 2 Python 3 macOS 11.0+ ARM64

clang_tidy-19.1.0-py2.py3-none-macosx_10_9_x86_64.whl (27.9 MB view details)

Uploaded Python 2 Python 3 macOS 10.9+ x86-64

File details

Details for the file clang_tidy-19.1.0.tar.gz.

File metadata

  • Download URL: clang_tidy-19.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for clang_tidy-19.1.0.tar.gz
Algorithm Hash digest
SHA256 6ae7e3fb47b0969a9ed3197f029165366ee4818437b5ce675426789279b35595
MD5 3048839b855682f78e919c0b714ab61f
BLAKE2b-256 31a51f7c67788f30a8a8d65afbc144034978490a0d0bb61ef2fdd2ca34700b5d

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 27104b3f7a6841d45ece284ba27f93ac7c982a5bf38a30fc6f280c4f0cd2fcfb
MD5 50cd0a1298a3ce24ffdbfa8da962bb99
BLAKE2b-256 b99bc9c14196d631a086386e153166e0c295bc1d690f5510078b2c528144ca51

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-win32.whl.

File metadata

  • Download URL: clang_tidy-19.1.0-py2.py3-none-win32.whl
  • Upload date:
  • Size: 20.1 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 082f520652a5268c4c97d94c1ff04686e31c9a76c29077beead491f6c345ab94
MD5 cb9a7fc667db05883b60a04756a18c5e
BLAKE2b-256 b7e68a692b91d520d90838a1477779b652cadea6f766409a5c3b5e181612b750

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ee2fe7afb34529dd6be9b8f367eaa864814c47e91479d34e3caedd56df80549b
MD5 753072128d22bff139861946111d9a70
BLAKE2b-256 219ce3b4b92daf52dc1d7ce354c525308fcf9bcd7a2f8ce21822a816e4040f92

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 8441c66560a25e37bb57e3b8d63ac4067f9b6f92c4887f2952d26ed9e49143a0
MD5 44200d578788bc51096076f790874422
BLAKE2b-256 885998cd6415c8824077f297123bb47990b8d39d95354c17acc87c3cefe4d0aa

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be843086d18f7c794fe43d9f3378c0c556fd09151a2375ed1943ff703c144970
MD5 ee6f8c5f01da65a5a0ace9cd10e84e94
BLAKE2b-256 5d8f479c82737d3139035fd14ca20638371e0297322404a04d42ff35ad83575c

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 79050ed7771520cf9825786f5207dc55ba7b281fff96aca037c0962b104de6ba
MD5 9b2127dfc934f324c6cb856a2cb225f0
BLAKE2b-256 7891622295ccb082db63124f3d0ac0dca403b730cad150022f9e44d4886c9cdd

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c7403c57db174bc17f94fec651a4c6c0bb050da74dc12e542be44edea8a77546
MD5 6c10679d432ef6a2c88a309faef94a15
BLAKE2b-256 030b3d85e0b71e07e632291c0655cd2965361e2376721d8f0ee396db61c75454

See more details on using hashes here.

File details

Details for the file clang_tidy-19.1.0-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for clang_tidy-19.1.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 61c81df8fbb032888d26ea7145b0a33d0b8539c1923f80084724bc6ee71f6220
MD5 1f775097d424e3b46d4c28e90be4a026
BLAKE2b-256 bb4f9b4326066352c36a9296f8bad6d87874e083bf1673eaff167e5b9c066bd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page