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 19.1.7

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

Built distributions (wheels)

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

Total release size: 18.3 MB

Release files / clang_apply_replacements-19.1.7.tar.gz

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

Download URL clang_apply_replacements-19.1.7-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
6c3b9f3759c5f8ea55d459d9d91c8220bfede7ac610d977bf029fecb81d993cc
BLAKE2b-256 checksum
How to use checksums
0e712ea38748e4a1347820ae8407d2bf55d1f69b1544c209f8b930d5d4bc3a61
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-19.1.7-py2.py3-none-win32.whl

Download URL clang_apply_replacements-19.1.7-py2.py3-none-win32.whl
Size 1.3 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
9cbf59f1d7b40b692111be847a33af1d130868b62a8d6b4839246ca176762655
BLAKE2b-256 checksum
How to use checksums
4bbc06e43de5f984441583b78a30a9e028da475f67caf971eccffc50badb1cc5
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-19.1.7-py2.py3-none-musllinux_1_2_x86_64.whl

Download URL clang_apply_replacements-19.1.7-py2.py3-none-musllinux_1_2_x86_64.whl
Size 2.8 MB
Tags Linux musl 1.2+ x86-64 Python 2 Python 3
SHA-256 checksum
How to use checksums
edcde4c980dd048328396e582d66f27a2ca2efc3bfd629d1ab13699c7cb51459
BLAKE2b-256 checksum
How to use checksums
69a81f3c9fd24ebc0a39e943aa287cd58fcccda41e5e7ce56a4fc0937098ece2
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-19.1.7-py2.py3-none-musllinux_1_2_i686.whl

Download URL clang_apply_replacements-19.1.7-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
f4653b378b79b5cfb5656e06588bdc564ca6355a27f1f6a4ad5443be02ca123c
BLAKE2b-256 checksum
How to use checksums
6cf77eb8677a66bde6aee6382b99d495d6d44f61ff54ec4896f669478918cd19
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-19.1.7-py2.py3-none-manylinux_2_31_armv7l.whl

Download URL clang_apply_replacements-19.1.7-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
4240117889b5dc891651480f3cc016ed737abaa4126292b8ffa607f924a1b34a
BLAKE2b-256 checksum
How to use checksums
7d874c560a7028aa121c3ecaef0a19e99b77221c9fb699270af7bec2adb53b88
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-19.1.7-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL clang_apply_replacements-19.1.7-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
03db5770e48194f0520aea7b6c45472ab912bcc4536fd69d9bed3a3a7a79a6ab
BLAKE2b-256 checksum
How to use checksums
3638e9a1dd4b1d36649c5723fd79cbe97bdb7ffe2cea7231c5f08b72a224b50b
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-19.1.7-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl

Download URL clang_apply_replacements-19.1.7-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
5b7d7a81d97ef3ccacdbbbdb65f7677ed4e36b6731f26e12168a28d9529cb845
BLAKE2b-256 checksum
How to use checksums
07b4809112e883b24752b8083d4c8d804b859cf6c1abd1b1887dd3d919d08653
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-19.1.7-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL clang_apply_replacements-19.1.7-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
5d357ea65d579a6e7af01ac123e9de5d246af54862df380550a6760eb3caebe0
BLAKE2b-256 checksum
How to use checksums
cf2274a911bf6d96b35d9a29eb8511dfeae2e979916b47333a8fb3fed9d34226
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-19.1.7-py2.py3-none-macosx_11_0_arm64.whl

Download URL clang_apply_replacements-19.1.7-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
edcdf5bcdee4749ab57a1f17aae27d6542069866c487fe3067cbf81b9a2ea0d3
BLAKE2b-256 checksum
How to use checksums
32e77c97c4b484d73f2a852a219023a98cd70ab103d62926d21f4898fdc72eb6
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-19.1.7-py2.py3-none-macosx_10_9_x86_64.whl

Download URL clang_apply_replacements-19.1.7-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
f01df262cd7f8873c811b6959349bd23acde4fdff605afad46175e68294f699c
BLAKE2b-256 checksum
How to use checksums
799d1124368fe5afd09cc97308e1969521895293aae8d9573ca57d6769f80f66
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

19.1.7 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