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 23.1.3

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

Built distributions (wheels)

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

Total release size: 19.9 MB

Release files / clang_apply_replacements-23.1.3.tar.gz

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

Download URL clang_apply_replacements-23.1.3-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
41cdfae01cf895f12dad8cc2335840bb875ab23c78743040e37eae7c6d132026
BLAKE2b-256 checksum
How to use checksums
ef7f73789d37b61c6bb6ea3d4b8b68d7a97efda2ceba8162bbf1896bd8f0ae1e
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-23.1.3-py2.py3-none-win32.whl

Download URL clang_apply_replacements-23.1.3-py2.py3-none-win32.whl
Size 1.4 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
146a4d3147e465a5d5145d0b62834f564f2198cd4784366bd113818c15d1789e
BLAKE2b-256 checksum
How to use checksums
0eec0fd25d2a1b1382bfbc59a9700c3129ec3166e8ebd9ab7eafe43d198b3d65
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-23.1.3-py2.py3-none-musllinux_1_2_x86_64.whl

Download URL clang_apply_replacements-23.1.3-py2.py3-none-musllinux_1_2_x86_64.whl
Size 3.0 MB
Tags Linux musl 1.2+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
139b42baa1f76a3560fb253e49d376238d672747e956e9c4759defb16b738161
BLAKE2b-256 checksum
How to use checksums
24309bd6314b2d5afb76b29ee15235bd447deff84e94624e4624fa666fbc55b2
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-23.1.3-py2.py3-none-musllinux_1_2_i686.whl

Download URL clang_apply_replacements-23.1.3-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
a0d1a85541400c2ea3443e58badd2e9cb908f198bc14ba36a30bad65bdeb95a2
BLAKE2b-256 checksum
How to use checksums
45c151a623a73c6e5f4b3dffdc0ada5d7c450a3b0b8b394b55f9ce21157d5264
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-23.1.3-py2.py3-none-manylinux_2_31_armv7l.whl

Download URL clang_apply_replacements-23.1.3-py2.py3-none-manylinux_2_31_armv7l.whl
Size 1.7 MB
Tags Linux glibc 2.31+ ARMv7l Python 2 Python 3
SHA-256 checksum
How to use checksums
ad4e8de425c2ee1f22051275382382971dd611bad62bc15608a7336c2d7a281b
BLAKE2b-256 checksum
How to use checksums
2b7f6272aec2d50d4ca34f64686a23ce00a4732c64eedbbdbe25beab4ccfea57
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-23.1.3-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL clang_apply_replacements-23.1.3-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
81b611a169ef86ae53a9396a382039c6fbda99edbf15e2eda00b48d8857bb429
BLAKE2b-256 checksum
How to use checksums
08fab2b458a9adf87813951ee3052c159739f911e09156bc984dab299229504e
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-23.1.3-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl

Download URL clang_apply_replacements-23.1.3-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl
Size 2.1 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
0d117f0300ba5ab42b47fddf2969eb02515689605f60058f386e62298c179dec
BLAKE2b-256 checksum
How to use checksums
fe0f0a130f9cd7ef12c0212fc509b9d8bf89ee6436fd1b4cbec8b028bcd0242a
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-23.1.3-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

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

Download URL clang_apply_replacements-23.1.3-py2.py3-none-macosx_11_0_arm64.whl
Size 1.5 MB
Tags Python 2 Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9a79e75823f16cf95f5c803cf71bdddeb72b3ce855a143d60366e3e59477c216
BLAKE2b-256 checksum
How to use checksums
efc0e31bfd7e6cdbdfd594c7ebd03e78307ab8d9c3b6f589365677f0e72fe4d7
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-23.1.3-py2.py3-none-macosx_10_9_x86_64.whl

Download URL clang_apply_replacements-23.1.3-py2.py3-none-macosx_10_9_x86_64.whl
Size 1.5 MB
Tags Python 2 Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
be3b21844634835e4ea3ec5539cb74df04377ad8e5f66efb3e88d69daafc6521
BLAKE2b-256 checksum
How to use checksums
56b027a935cca8616dc50cdb3aca8e044e0cafaf95a067926649df8d501917fd
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

23.1.3 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