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 to 23. pip install clang-apply-replacements installs the newest; pip install "clang-apply-replacements==18.*" installs LLVM 18.
  • 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.4

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.4
File Size Uploaded Provenance Actions
clang_apply_replacements-23.1.4.tar.gz 15.9 kB With provenance Details for clang_apply_replacements-23.1.4.tar.gz

Built distributions (wheels)

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

Total release size: 19.9 MB

Release files / clang_apply_replacements-23.1.4.tar.gz

Download URL clang_apply_replacements-23.1.4.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
375d9471a0e418c7109ffc2deb3298a5a24736a12f96deeb16124b2b30d8f60f
BLAKE2b-256 checksum
How to use checksums
dfcc7abc37890bd12e2d820c96862bca3f4aa008742d137b01530776530c0b1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
9f638ec2d2789e8e7b053fd68154e9aac41cfe6214492170f40905cafc99d78e
BLAKE2b-256 checksum
How to use checksums
2d146395c61a463bb839c29473a71cd17d5bd53a4422cbea8f7bec44556e869b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-py2.py3-none-win32.whl
Size 1.4 MB
Tags Python 2 Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
dec42fcde54ba41a63bd7c402a521b51941202f332c62ebe3b15fa360d05e491
BLAKE2b-256 checksum
How to use checksums
defe26b6c2113bafc659a6aaf81326dc3451dc4ffb8da6d5a35efb26bfabd9fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
0225b6429fb017e2b47e56731c7f9b45db5534fd9259f3c479877c7dba73f517
BLAKE2b-256 checksum
How to use checksums
a6add328a1b743cf8a4d593586f6fd87ae31e03199771d22172356170a0b457d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
1876ea9a5d7e9e44808c17d96e6e380014a04b2175b503ab0db8b69777e12f94
BLAKE2b-256 checksum
How to use checksums
0d17ebf7474952b4f151292308b1b902358817d486b696e57e5e4b564103e066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
b8912dd803d69de95b874f02637bd089e2d1992c1d76091c36458aa77352ace0
BLAKE2b-256 checksum
How to use checksums
4c7549c947817a0bdd77739e572327aa3a0ddae721180a369aea4ef5ce51f1cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
1ef3e2982fc3702f2510e04e1cbb69abaacc0112223adbfb726149aab18bf97c
BLAKE2b-256 checksum
How to use checksums
cdbdb9ca4c5f6b746004928c776a72f0e06e336dcb54195264f3db3d78754668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
f223e21c8a18511d81265d8533007bf53bf9976a85e006b4d06406109a5954fa
BLAKE2b-256 checksum
How to use checksums
0618472c7c29af85ccab55be458b8bff924d757bfb5f5e093d07f895b55f820f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
c8fc3fdd93c86c152ef4cb488a60e3f1524ed2be05ef46f9bc1ee07c1889e06e
BLAKE2b-256 checksum
How to use checksums
ee6742ba830dfdb632d447effcf997a3dbba19dd95e6567774a608858b27dad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
53c13d6d445afeeee28c544f7323b731ba6ec58cf688c203bcea29fa74bfc4ef
BLAKE2b-256 checksum
How to use checksums
70e9fa8bb0c31207683e5a48e8b579be77399d73fc6effa0d4f93241d0c70871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

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

Download URL clang_apply_replacements-23.1.4-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
81386be9050c82af1695ec36e03b9c1e814e3adf60beceeb7222113400a9c7e5
BLAKE2b-256 checksum
How to use checksums
93c8514a555751073fb0c28fc25d4bc4e6d2c9bd0a66933e2673bece4b59576d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Nov 1, 2026.

Transparency log

Security for clang-apply-replacements 23.1.4

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.

Full provenance

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for clang_apply_replacements-23.1.4.tar.gz

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 Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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