11clang-tools CLI
22===============
33
4- **Install clang-format, clang-tidy, clang-query, and clang-apply-replacements binaries with clang-tools CLI. **
5-
64.. |latest-version | image :: https://img.shields.io/pypi/v/clang-tools?color=blue
75 :target: https://pypi.org/project/clang-tools/
86 :alt: PyPI
9- .. |python- test | image :: https://github.com/cpp-linter/clang-tools-pip/actions/workflows/python- test.yml/badge.svg
10- :target: https://github.com/cpp-linter/clang-tools-pip/actions/workflows/python- test.yml
11- :alt: Python test
7+ .. |test | image :: https://github.com/cpp-linter/clang-tools-pip/actions/workflows/test.yml/badge.svg
8+ :target: https://github.com/cpp-linter/clang-tools-pip/actions/workflows/test.yml
9+ :alt: test
1210.. |codecov-badge | image :: https://codecov.io/gh/cpp-linter/clang-tools-pip/branch/main/graph/badge.svg?token=40G5ZOIRRR
1311 :target: https://codecov.io/gh/cpp-linter/clang-tools-pip
1412 :alt: codecov
@@ -22,16 +20,23 @@ clang-tools CLI
2220 :target: https://pypistats.org/packages/clang-tools
2321 :alt: PyPI - Downloads
2422
25- |latest-version | |python-test | |codecov-badge | |sonar-badge | |platform-badge | |pypi-badge |
23+ |latest-version | |test | |codecov-badge | |sonar-badge | |platform-badge | |pypi-badge |
24+
25+
26+ Easily install clang-format, clang-tidy, clang-query, and clang-apply-replacements static binaries or Python wheels using the ``clang-tools `` CLI.
27+
2628
2729.. important ::
2830 This package only manages binary executables (& corresponding symbolic links) that
2931 are installed using this package's executable script. It does not intend to change or
3032 modify any binary executable installed from other sources (like LLVM releases).
3133
34+ For Python wheels, this CLI only support clang-format and clang-tidy tools.
35+
3236Features
3337--------
3438
39+ - Support clang tools binaries and Python wheels.
3540- Binaries are statically linked for improved portability.
3641- Binaries can be specified installed for increased flexibility.
3742- Binaries are checked with SHA512 checksum. This ensures:
@@ -48,6 +53,7 @@ Features
4853 category.
4954- Customizable install path.
5055
56+
5157Install clang-tools CLI
5258-----------------------
5359
@@ -71,26 +77,27 @@ Install clang-tools CLI
7177 2. the installed path (for MacOS and Windows) is within the environment's
7278 variable ``PATH ``.
7379
74- Install `clang-tools ` command with pip
80+ Install `` clang-tools ` ` command with pip
7581
7682.. code-block :: shell
7783
7884 pip install clang-tools
7985
80- Install `clang-tools ` from git repo
86+ Install `` clang-tools ` ` from git repo
8187
8288.. code-block :: shell
8389
8490 pip install git+https://github.com/cpp-linter/clang-tools-pip.git@main
8591
92+
8693 CLI Usage
8794---------
8895
8996For a list of supported Command Line Interface options, see
9097`the CLI documentation <https://cpp-linter.github.io/clang-tools-pip/cli_args.html >`_
9198
92- Examples
93- ********
99+ Install binaries examples
100+ ~~~~~~~~~~~~~~~~~~~~~~~~~
94101
95102Use ``clang-tools `` command to install version 13 binaries.
96103
@@ -126,17 +133,56 @@ If the installed directory is in your path, you can run the installed tools.
126133 Default target: x86_64-unknown-linux-gnu
127134 Host CPU: skylake
128135
129- Supported versions
136+
137+ Install wheels examples
138+ ~~~~~~~~~~~~~~~~~~~~~~~~~
139+
140+ After installing the ``clang-tools `` CLI, you can install the Python wheels using the ``clang-tools-wheel `` command.
141+
142+ .. important ::
143+
144+ The ``clang-tools-wheel `` command is primarily intended for cpp-linter projects to simplify installing clang tools Python wheels.
145+ For general use, it is recommended to install the wheels directly using ``pip ``, ``pipx ``, ``uv ``, or similar tools.
146+
147+
148+ .. code-block :: shell
149+
150+ # Install latest clang-format wheel
151+ clang-tools-wheel --tool clang-format
152+ # Install specific version clang-format wheel
153+ clang-tools-wheel --tool clang-format --version 21
154+
155+ # Install latest clang-tidy wheel
156+ clang-tools-wheel --tool clang-tidy
157+ # Install specific version clang-tidy wheel
158+ clang-tools-wheel --tool clang-tidy --version 21
159+
160+
161+ Supported Versions
130162------------------
131163
132- clang-format, clang-tidy, clang-query, clang-apply-replacements
133- ***************************************************************
164+
165+ clang tools binaries
166+ ~~~~~~~~~~~~~~~~~~~~
167+
168+ The following table shows the supported versions of clang-format, clang-tidy, clang-query, and clang-apply-replacements binaries for each platform:
169+
134170.. csv-table ::
135- :header: "Version ", "21", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "9"
171+ :header: "Platform ", "21", "20", "19", "18", "17", "16", "15", "14", "13", "12", "11", "10", "9"
136172 :stub-columns: 1
137173
138174 Linux,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️
139175 Windows,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️
140176 macOS,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️
141177
142178For more details, visit the `clang-tools-static-binaries <https://github.com/cpp-linter/clang-tools-static-binaries >`_ repository.
179+
180+ clang tools Python wheels
181+ ~~~~~~~~~~~~~~~~~~~~~~~~~
182+
183+ The following Python wheels are supported:
184+
185+ - `clang-format <https://pypi.org/project/clang-format/#history >`_
186+ - `clang-tidy <https://pypi.org/project/clang-tidy/#history >`_
187+
188+ Check the respective PyPI pages for available versions and platform support.
0 commit comments