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 20.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 20.1.8
File Size Uploaded
clang_apply_replacements-20.1.8.tar.gz 15.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for clang-apply-replacements 20.1.8
File
clang_apply_replacements-20.1.8-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
clang_apply_replacements-20.1.8-py2.py3-none-win32.whl Python 3, Python 2 none Windows x86-32 Details
clang_apply_replacements-20.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-20.1.8-py2.py3-none-musllinux_1_2_i686.whl Python 2, Python 3 none Linux musl 1.2+ x86-32 Details
clang_apply_replacements-20.1.8-py2.py3-none-manylinux_2_31_armv7l.whl Python 3, Python 2 none Linux glibc 2.31+ ARMv7l Details
clang_apply_replacements-20.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-20.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl Python 2, Python 3 none Linux glibc 2.26+ x86-32, Linux glibc 2.28+ x86-32 Details
clang_apply_replacements-20.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-20.1.8-py2.py3-none-macosx_11_0_arm64.whl Python 2, Python 3 none macOS 11.0+ ARM64 Details
clang_apply_replacements-20.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: 18.6 MB

Release files / clang_apply_replacements-20.1.8.tar.gz

Download URL clang_apply_replacements-20.1.8.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bebb69ae573828af1464c5d064235d7103da9e91dcbbb4dda43487807305d135
BLAKE2b-256 checksum
How to use checksums
1b754c0176e0c64b51c93a7df3bebae556317a7e81c93d6241964dbe0e9fe201
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-20.1.8-py2.py3-none-win_amd64.whl

Download URL clang_apply_replacements-20.1.8-py2.py3-none-win_amd64.whl
Size 1.5 MB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
91aea6e9ada46ecbf703631924f429648e751eed701b5c49ab255636502a5b20
BLAKE2b-256 checksum
How to use checksums
00a3f6c00963efed2bea30bf836c2c59ad8689f049c37613ab69f6b99e3df78f
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-20.1.8-py2.py3-none-win32.whl

Download URL clang_apply_replacements-20.1.8-py2.py3-none-win32.whl
Size 1.3 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
0afbadbd5169567858ae94ff7bd1038ff2563bfdbe6d6eb5c37a8fc9b8d82ce3
BLAKE2b-256 checksum
How to use checksums
046af9dbec8df4791cb4f74d72f8509b705ab04044ebda1eaccc25dff456ae6a
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-20.1.8-py2.py3-none-musllinux_1_2_x86_64.whl

Download URL clang_apply_replacements-20.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
7f17d6695c0ad50acb815ff85233390a2e66ae34c8d04023f02d8d5f3059c145
BLAKE2b-256 checksum
How to use checksums
e0b7e2108e6ab7828003eaabb21f6816532ef9d6828d2a13ff494d033e924f67
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-20.1.8-py2.py3-none-musllinux_1_2_i686.whl

Download URL clang_apply_replacements-20.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
290a9e373697d549e9ef9ed392bff5025e832a6a6e9bee3e14a259325f0e387c
BLAKE2b-256 checksum
How to use checksums
31ea9a0e789808f22141c8a743bc5474cc8ff64d8dc9be6cb5c413ad05c70aa0
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-20.1.8-py2.py3-none-manylinux_2_31_armv7l.whl

Download URL clang_apply_replacements-20.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
b1655d33384e42472190e477acc53a8d081bac1c006f2718731a6bd7a25fc29d
BLAKE2b-256 checksum
How to use checksums
2dce45779fae584f9532a103568ff435955d827679cc17677f523d72397369b2
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-20.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL clang_apply_replacements-20.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.8 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
ab7cc2c052a689c77b46aceda37c43a7fcf086a3715b281764dfb5e1a0cae7a6
BLAKE2b-256 checksum
How to use checksums
4a24db403018b58221381a3a50494299fd6d20b5420d058fa52fdc0fcb48cbe3
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-20.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl

Download URL clang_apply_replacements-20.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl
Size 1.9 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
63ff6a08fd085ead871279f955f4152beb4d573410d388f1273985b1227f9f60
BLAKE2b-256 checksum
How to use checksums
f622099ac594b22f36c86e14953036be20c6bc6146689e6c8f43fc14f8bf9d18
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-20.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL clang_apply_replacements-20.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 1.7 MB
Tags Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 Python 2 Python 3
SHA-256 checksum
How to use checksums
0d7c187d3762c9bd1cc0bd8eeb4173142d9128acd30bbc74639a184d0fa76fc9
BLAKE2b-256 checksum
How to use checksums
0d801b6af99185c0f85667c6c58ea9c31e27cef4cc79204a174d75cbf065ad5a
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-20.1.8-py2.py3-none-macosx_11_0_arm64.whl

Download URL clang_apply_replacements-20.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
ecae04683646816102795022faba1923d4c43b8a356e098f2b84155b7cb593a6
BLAKE2b-256 checksum
How to use checksums
c2965294d44a2e2997d0fdcba80f0ccffdac9bcc6685da28995a6ee3802751d2
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-20.1.8-py2.py3-none-macosx_10_9_x86_64.whl

Download URL clang_apply_replacements-20.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
1370c9d47e9cbca846853a4431c45c0fc65f3375bc8e18f9b5df46375deb478c
BLAKE2b-256 checksum
How to use checksums
6f35e021117cd37f00fa2ebb66f3b29b561735f6943226f0cb3f30a8b12ed4cc
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

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