Skip to main content

clang-apply-replacements

PyPI part of cpp-linter

A Python wheel of clang-apply-replacements, the LLVM-based tool that applies serialized clang-tidy fix-it replacements (YAML files) to source files.

Website · Get started · Discussions

Quick start

pip install clang-apply-replacements

The wheel bundles the clang-apply-replacements binary; no LLVM installation is required on the host machine.

Verify:

clang-apply-replacements --version

Usage

clang-tidy --export-fixes writes the fixes it suggests to a YAML file, and clang-apply-replacements applies every .yaml file under the directory you give it. With a compile_commands.json in build/:

mkdir -p fixes
clang-tidy -p build --export-fixes=fixes/main.yaml src/main.cpp
clang-apply-replacements --remove-change-desc-files fixes
  • clang-tidy does not create the fixes directory, so create it first.
  • --remove-change-desc-files deletes the YAML files after applying them. Applying the same file twice edits the source twice and breaks it.

Run clang-apply-replacements --help to see all available options. The clang-tidy documentation describes --export-fixes.

Supported versions

  • PyPI has wheels for LLVM 16 and 17. pip install clang-apply-replacements installs the newest; pip install "clang-apply-replacements==16.*" installs LLVM 16.
  • Wheels exist for Linux (x86-64, x86, ARM64 and ARMv7 with glibc; x86-64 and x86 with musl), macOS (x86-64 and ARM64) and Windows (x86-64 and x86). On other platforms pip builds the source distribution, which downloads and compiles LLVM.
  • Since 22.1.8, the clang-tidy wheel on PyPI also installs a clang-apply-replacements command. In an environment with both packages, the one installed last provides the command, and uninstalling either one removes it.
  • For other LLVM versions, the static binaries include clang-apply-replacements for LLVM 12 to 23.

Contributing

See CONTRIBUTING.md for development setup, build instructions, and the release process, and use GitHub issues for bug reports and feature requests.

License

This project is licensed under the Apache License 2.0 - see LICENSE.md for details. The clang-apply-replacements binary bundled in the wheels is part of the LLVM Project and is licensed under the Apache License 2.0 with LLVM Exceptions.

Metadata

Release files for clang-apply-replacements 22.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clang-apply-replacements 22.1.8
File Size Uploaded
clang_apply_replacements-22.1.8.tar.gz 15.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for clang-apply-replacements 22.1.8
File
clang_apply_replacements-22.1.8-py2.py3-none-win_amd64.whl Python 3, Python 2 none Windows x86-64 Details
clang_apply_replacements-22.1.8-py2.py3-none-win32.whl Python 3, Python 2 none Windows x86-32 Details
clang_apply_replacements-22.1.8-py2.py3-none-musllinux_1_2_x86_64.whl Python 3, Python 2 none Linux musl 1.2+ x86-64 Details
clang_apply_replacements-22.1.8-py2.py3-none-musllinux_1_2_i686.whl Python 3, Python 2 none Linux musl 1.2+ x86-32 Details
clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_31_armv7l.whl Python 3, Python 2 none Linux glibc 2.31+ ARMv7l Details
clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl Python 3, Python 2 none Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl Python 3, Python 2 none Linux glibc 2.26+ x86-32, Linux glibc 2.28+ x86-32 Details
clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl Python 3, Python 2 none Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
clang_apply_replacements-22.1.8-py2.py3-none-macosx_11_0_arm64.whl Python 3, Python 2 none macOS 11.0+ ARM64 Details
clang_apply_replacements-22.1.8-py2.py3-none-macosx_10_9_x86_64.whl Python 3, Python 2 none macOS 10.9+ x86-64 Details

Total release size: 19.2 MB

Release files / clang_apply_replacements-22.1.8.tar.gz

Download URL clang_apply_replacements-22.1.8.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3cf422b45cd1cc7e27d3649041a63bd45a35354e7e81e3ea25e72e267c5328a2
BLAKE2b-256 checksum
How to use checksums
8bbfd322d5344209148b63427d741446ea3fa1de3ff1c4d3243705d98f96c2fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-win_amd64.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-win_amd64.whl
Size 1.6 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
46091905a672224532e0607654dec7e35933288b32a8929cde4347d1735d1ad9
BLAKE2b-256 checksum
How to use checksums
e32d0b4d70fcf900f6f53608e6b575715314c9b22687b7f7f8f8f0e6a5c3b09d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-win32.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-win32.whl
Size 1.4 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
102cd9156c745092ecf312b04677e931b16bf44ac9b446ae37fb7f02a610c7a0
BLAKE2b-256 checksum
How to use checksums
e4eb596ed8e0d9ebccc6c6fa36acb4e5f316ad911bccbfbb8cf40c02f42e179b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-musllinux_1_2_x86_64.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-musllinux_1_2_x86_64.whl
Size 2.9 MB
Tags Linux musl 1.2+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
758513debd27d6d02ec255285fece4158485da74da5f5653d6eda9c2ade84c67
BLAKE2b-256 checksum
How to use checksums
861cd1510d513eda16bb60a80736118a0de44bc4a4f94f3b82547100e521bee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-musllinux_1_2_i686.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-musllinux_1_2_i686.whl
Size 3.2 MB
Tags Linux musl 1.2+ x86-32 Python 2 Python 3
SHA-256 checksum
How to use checksums
06f69c7bafe22f15ee52f421a48cb6bafb53675597ff75694da113f9a579b44f
BLAKE2b-256 checksum
How to use checksums
b9541510099283b9a7f024f799ff3931d345e3bf88fdc00b7f2e291ca936be67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_31_armv7l.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_31_armv7l.whl
Size 1.6 MB
Tags Linux glibc 2.31+ ARMv7l Python 2 Python 3
SHA-256 checksum
How to use checksums
e4667244fa5695521609118f4d0513bf6b7900c3bfcd8e9befae2ea706782988
BLAKE2b-256 checksum
How to use checksums
33e7767e3b11cc6045af23470236ea6da5a81d6ea977f0f84175f43aeff786b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.9 MB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
243c6077aa0dc948c580616882532bd2eae73b635f20b4ac73ae7e9f7560fa4e
BLAKE2b-256 checksum
How to use checksums
9dbc945e3450ea0dc252dcd0086c1f5572bcc4a5b011a35c07562964fef491bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl
Size 2.0 MB
Tags Linux glibc 2.26+ x86-32 Linux glibc 2.28+ x86-32 Python 2 Python 3
SHA-256 checksum
How to use checksums
1e1ff4687f958a7d308c13fce6b22db44d95c946202a1ff28a51baf91226a9ef
BLAKE2b-256 checksum
How to use checksums
1ea059eebe1ef5897b0062249dd5efedda17449e07065e7085df457dac8fb467
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 1.8 MB
Tags Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 Python 2 Python 3
SHA-256 checksum
How to use checksums
0755b4443c17b99cb60dcc55fba43d7e55ffe24cf9117d2984af6d3311c4eef1
BLAKE2b-256 checksum
How to use checksums
5c67458352025ad95b5ff20d2e895222cb3100d3f62ff9a12731562490e601d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-macosx_11_0_arm64.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-macosx_11_0_arm64.whl
Size 1.4 MB
Tags Python 2 Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
38d43ddf6cc68cfd06f4bf78901b28d2bf7d653e2f1955078b3afc5d5ba01ac2
BLAKE2b-256 checksum
How to use checksums
4acdf4812a86eeac6c76d12bc9f6b5d8c6f70a6e6a70f9c4d084cec4f939409f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / clang_apply_replacements-22.1.8-py2.py3-none-macosx_10_9_x86_64.whl

Download URL clang_apply_replacements-22.1.8-py2.py3-none-macosx_10_9_x86_64.whl
Size 1.4 MB
Tags Python 2 Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
c91843ab77b5d3e26e2402e0ad26f3106b80ddb5326f2a7441d365beec7cc00a
BLAKE2b-256 checksum
How to use checksums
8ef5eb8ea5ecc680f39727abf571b0fa95af25b7ba5ad7fc6f8bf9166d950bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

22.1.8 This release

11 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page