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

Built distributions (wheels)

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

Release files / clang_apply_replacements-21.1.8.tar.gz

Download URL clang_apply_replacements-21.1.8.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
72866374e1dd8bd61cae8e2748f148facb1ffea8dd959a00b0a798c6bb6a3765
BLAKE2b-256 checksum
How to use checksums
6796bd29f65eb292581fdc9b17153430b8bf5acf270ab6ee97602b5f69662f42
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-21.1.8-py2.py3-none-win_amd64.whl

Download URL clang_apply_replacements-21.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
a57aef03a8850f7da6ff5e6c96bfd720425926a837569990ed377e61a1cb18d0
BLAKE2b-256 checksum
How to use checksums
dcb9ac23df1f5ea92f89e27c18f1db625c1f1923bb627e5a5d99a56c773297a5
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-21.1.8-py2.py3-none-win32.whl

Download URL clang_apply_replacements-21.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
d30784286c9a28cb79827b194722762bae64a5920833ef2550139cf5646cf258
BLAKE2b-256 checksum
How to use checksums
c616b8b1140b2818f95a6a82e91c82de899057b9d891aaa7a36de500a039f5ac
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-21.1.8-py2.py3-none-musllinux_1_2_x86_64.whl

Download URL clang_apply_replacements-21.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
2dea7e6e083af0b0bdb0c84a69ff849fb62435cb9d13d9cbcddf2136b129afe9
BLAKE2b-256 checksum
How to use checksums
daabb5148c4761530af7288703c09c9ae4c30f7700f402e8aaee52f27e6816c2
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-21.1.8-py2.py3-none-musllinux_1_2_i686.whl

Download URL clang_apply_replacements-21.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
36664ab08b56443430ee140d4c7a30c70dae01836aeb18250011e1c601bb0c83
BLAKE2b-256 checksum
How to use checksums
87b13b56ee029f8802b854d66840607b2ca63da8453d5f26e135bf4142d089fc
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-21.1.8-py2.py3-none-manylinux_2_31_armv7l.whl

Download URL clang_apply_replacements-21.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
0d9589bb976a3aae7273d4f997c2c794d4b566c00472e38bc9ab57a9b299aaee
BLAKE2b-256 checksum
How to use checksums
0ff6f20b6b4c23200a97c5a53e5c06ecd8050359a82127210abc8c42a802386e
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-21.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL clang_apply_replacements-21.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
d872bc0d0152bdea8f820ce6c2f47c2349b113af8518fbfa5fb6f5e104b2f50b
BLAKE2b-256 checksum
How to use checksums
1ee7e16a2b59023d4facbfcdf61d2f498e675f4d5534f7737e9d4e9448328434
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-21.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl

Download URL clang_apply_replacements-21.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
a776d1db3b19563c979a1c0c08e58f4f361e62f3f470362b538cf67421701ed3
BLAKE2b-256 checksum
How to use checksums
9831d98375fdb8edd862a92a4c5d681107ddf73fd7f1946a1494921ebda0ec2b
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-21.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL clang_apply_replacements-21.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
0e2f29f3d1667afa4094f8c510004554c7a48887293230d8fd870ba80a3243fc
BLAKE2b-256 checksum
How to use checksums
0b3db9b2c9d04e3b465c12a129bf56158e0f7d3ad50a8b34bcf138fc5d129b51
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-21.1.8-py2.py3-none-macosx_11_0_arm64.whl

Download URL clang_apply_replacements-21.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
5ba962dd85376703f422614ca747b84c30f3b242455004ccce60da876f0235fc
BLAKE2b-256 checksum
How to use checksums
cb85608426219f9a20a5a2a77a03fe5f1ac311aa93f2e7453bab231de7f6aa37
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-21.1.8-py2.py3-none-macosx_10_9_x86_64.whl

Download URL clang_apply_replacements-21.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
83a388dcc9d1e86dc60202a92e00b4d294ee8500d5520f3b70cc77954a3d2921
BLAKE2b-256 checksum
How to use checksums
ddd27a3ed454edf87cfc392bac2dd1a8d8f0114eb2680d1a4eec5fe434781ad3
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

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