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 18.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 18.1.8
File Size Uploaded
clang_apply_replacements-18.1.8.tar.gz 15.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for clang-apply-replacements 18.1.8
File
clang_apply_replacements-18.1.8-py2.py3-none-win_amd64.whl Python 3, Python 2 none Windows x86-64 Details
clang_apply_replacements-18.1.8-py2.py3-none-win32.whl Python 3, Python 2 none Windows x86-32 Details
clang_apply_replacements-18.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-18.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-18.1.8-py2.py3-none-manylinux_2_31_armv7l.whl Python 3, Python 2 none Linux glibc 2.31+ ARMv7l Details
clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl Python 2, Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details
clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl Python 2, Python 3 none Linux glibc 2.28+ x86-32, Linux glibc 2.26+ x86-32 Details
clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl Python 2, Python 3 none Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details
clang_apply_replacements-18.1.8-py2.py3-none-macosx_11_0_arm64.whl Python 3, Python 2 none macOS 11.0+ ARM64 Details
clang_apply_replacements-18.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: 17.9 MB

Release files / clang_apply_replacements-18.1.8.tar.gz

Download URL clang_apply_replacements-18.1.8.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bc1b8fb2b97937c98a0a1deb511f65ef22b2762d97133ae686ed8741b192f692
BLAKE2b-256 checksum
How to use checksums
6c922b289e144999e3bb3ca3f4dc6520dd7a60163836484f137260e68beffd4e
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-win_amd64.whl
Size 1.4 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a989c8634888e2b009744af6c2d3e2f05372c0f9459f084c70b3bf70724fb050
BLAKE2b-256 checksum
How to use checksums
008c8b91d252a8db236e02f13a440a3ca995b4f7acd3d065d29c2475f741cc3b
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-win32.whl
Size 1.2 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
814a4cc6d8859352fe99cc2b8ed6e0dc0486a01247c5bef073a33a25764f1de8
BLAKE2b-256 checksum
How to use checksums
51e73532b8cddfed1f942dc320186c39826380aecc62466485ac233d96cbc743
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.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
52b9b1c45a6228e499c1da484999a66bbbd92316d0be99498d22692b8a8123a9
BLAKE2b-256 checksum
How to use checksums
4e2ca5f320a8c33e9555cd99ba584d02451b93c69142d8dfba2110f0066abf9a
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-musllinux_1_2_i686.whl
Size 3.1 MB
Tags Linux musl 1.2+ x86-32 Python 2 Python 3
SHA-256 checksum
How to use checksums
fc4dc2255093623c109b7e714ebf0e8fa816a4e99f7dd9f4cf17d709a59e43d9
BLAKE2b-256 checksum
How to use checksums
5a7cba55d6e78f0cbe303c7115c06a2615a21e64c48535506733157513f9b23e
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_31_armv7l.whl
Size 1.5 MB
Tags Linux glibc 2.31+ ARMv7l Python 2 Python 3
SHA-256 checksum
How to use checksums
bca0eef0f5c2e00451b93207442bc0a9290e6b7ecc07e84e40fd37323453fc77
BLAKE2b-256 checksum
How to use checksums
ac9ec94ec2290744e7cb724e98d5ae05bfb8805781e7836241671d57d4243543
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 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
50a3b2940a1e6ed5d3ccc7a6687a95fac486c1ce2e845425fce6623b2796d32c
BLAKE2b-256 checksum
How to use checksums
8ea701c1b20f3403cb15999c4994c99883660307293a1d37ff2508fa1a45cdc3
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl
Size 1.8 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
7c5ce386988204b9473a1ba56ce574b1909459f4e741aeaaab85c890b14fa322
BLAKE2b-256 checksum
How to use checksums
f759ac8a9af044c54a02e0292fbf97a3105eb02286d10f2ceba088374a702b80
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 1.6 MB
Tags Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 Python 2 Python 3
SHA-256 checksum
How to use checksums
e01d700c67316db171a80f22a6560102b7a8c0dc7befc77439c396e0a697fe0d
BLAKE2b-256 checksum
How to use checksums
db51ad5a0186896034ec9e0c206283936cc71c5015ed55dce34a461b15c9b858
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-macosx_11_0_arm64.whl
Size 1.3 MB
Tags Python 2 Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8ee215744e26268425b3f71814f58a0a00cb41f9afc69b9ac5118bd2748742c2
BLAKE2b-256 checksum
How to use checksums
e2bc291007f970923ae42c18a858b1bd99e5c90150aba97626479b2943d308f5
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 16, 2026.

Transparency log

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

Download URL clang_apply_replacements-18.1.8-py2.py3-none-macosx_10_9_x86_64.whl
Size 1.3 MB
Tags Python 2 Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
16f3adc0aba2bcb32475f12d16b386f3ac06c855df5db3445e6713b3e8d05e3a
BLAKE2b-256 checksum
How to use checksums
1d7c2b498852fbe696c7c2d8b025ba75cf949573e32ab4386b0a84bd17301967
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 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

18.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