{"id":15144640,"url":"https://github.com/cpp-linter/clang-tools-pip","last_synced_at":"2025-10-23T22:30:57.252Z","repository":{"id":41080112,"uuid":"507168663","full_name":"cpp-linter/clang-tools-pip","owner":"cpp-linter","description":"Install clang-format, clang-tidy, clang-query and clang-apply-replacements binaries  with clang-tools CLI.","archived":false,"fork":false,"pushed_at":"2025-09-11T08:50:15.000Z","size":19885,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-04T08:44:15.883Z","etag":null,"topics":["clang-format","clang-tidy","clang-tools-extra","hacktoberfest","llvm","llvm-clang"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/clang-tools","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cpp-linter.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-24T23:31:50.000Z","updated_at":"2025-09-11T08:50:17.000Z","dependencies_parsed_at":"2024-02-23T00:31:21.347Z","dependency_job_id":"98296b5d-5d83-48b3-bb71-15596eb6085c","html_url":"https://github.com/cpp-linter/clang-tools-pip","commit_stats":{"total_commits":122,"total_committers":4,"mean_commits":30.5,"dds":0.2295081967213115,"last_synced_commit":"960e9a1ed1330d343e871c15ff3cf08ca4ffdf80"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"purl":"pkg:github/cpp-linter/clang-tools-pip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-linter%2Fclang-tools-pip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-linter%2Fclang-tools-pip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-linter%2Fclang-tools-pip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-linter%2Fclang-tools-pip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpp-linter","download_url":"https://codeload.github.com/cpp-linter/clang-tools-pip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpp-linter%2Fclang-tools-pip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280706316,"owners_count":26376965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clang-format","clang-tidy","clang-tools-extra","hacktoberfest","llvm","llvm-clang"],"created_at":"2024-09-26T11:00:21.627Z","updated_at":"2025-10-23T22:30:57.247Z","avatar_url":"https://github.com/cpp-linter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"clang-tools CLI\n===============\n\n**Install clang-format, clang-tidy, clang-query, and clang-apply-replacements binaries with clang-tools CLI.**\n\n.. |latest-version| image:: https://img.shields.io/pypi/v/clang-tools?color=blue\n    :target: https://pypi.org/project/clang-tools/\n    :alt: PyPI\n.. |python-test| image:: https://github.com/cpp-linter/clang-tools-pip/actions/workflows/python-test.yml/badge.svg\n    :target: https://github.com/cpp-linter/clang-tools-pip/actions/workflows/python-test.yml\n    :alt: Python test\n.. |codecov-badge| image:: https://codecov.io/gh/cpp-linter/clang-tools-pip/branch/main/graph/badge.svg?token=40G5ZOIRRR\n    :target: https://codecov.io/gh/cpp-linter/clang-tools-pip\n    :alt: codecov\n.. |sonar-badge| image:: https://sonarcloud.io/api/project_badges/measure?project=cpp-linter_clang-tools-pip\u0026metric=alert_status\n    :target: https://sonarcloud.io/summary/new_code?id=cpp-linter_clang-tools-pip\n    :alt: sonarcloud\n.. |platform-badge| image:: https://img.shields.io/badge/platform-linux--64%20%7C%20win--64%20%7C%20osx--64%20-blue\n    :target: https://pypi.org/project/clang-tools/\n    :alt: Platform\n.. |pypi-badge| image:: https://img.shields.io/pypi/dw/clang-tools\n    :target: https://pypistats.org/packages/clang-tools\n    :alt: PyPI - Downloads\n\n|latest-version| |python-test| |codecov-badge| |sonar-badge| |platform-badge| |pypi-badge|\n\n.. important::\n    This package only manages binary executables (\u0026 corresponding symbolic links) that\n    are installed using this package's executable script. It does not intend to change or\n    modify any binary executable installed from other sources (like LLVM releases).\n\nFeatures\n--------\n\n- Binaries are statically linked for improved portability.\n- Binaries can be specified installed for increased flexibility.\n- Binaries are checked with SHA512 checksum. This ensures:\n\n  1. Downloads are not corrupted.\n  2. Old binary builds can be updated.\n- Installed binaries are symbolically linked for better cross-platform usage.\n  For example (on Windows), the ``clang-tidy-13.exe`` binary executable can\n  also be invoked with the symbolic link titled ``clang-tidy.exe``\n\n  .. note::\n      To create symbolic links on Windows, you must enable developer mode\n      from the Windows settings under \"Privacy \u0026 security\" \u003e \"For developers\"\n      category.\n- Customizable install path.\n\nInstall clang-tools CLI\n-----------------------\n\n.. tip::\n    It is recommended to use this package in a virtual environment.\n\n    .. code-block:: bash\n\n        # create the virtual env in the working directory\n        python -m venv env-name\n\n        # to activate on Linux:\n        source env-name/bin/activate\n\n        # to activate on Windows:\n        ./env-name/Scripts/activate\n\n    This will ensure that\n\n    1. there are no permission problems when installing the tool\n    2. the installed path (for MacOS and Windows) is within the environment's\n       variable ``PATH``.\n\nInstall `clang-tools` command with pip\n\n.. code-block:: shell\n\n    pip install clang-tools\n\nInstall `clang-tools` from git repo\n\n.. code-block:: shell\n\n    pip install git+https://github.com/cpp-linter/clang-tools-pip.git@main\n\nCLI Usage\n---------\n\nFor a list of supported Command Line Interface options, see\n`the CLI documentation \u003chttps://cpp-linter.github.io/clang-tools-pip/cli_args.html\u003e`_\n\nExamples\n********\n\nUse ``clang-tools`` command to install version 13 binaries.\n\n.. code-block:: shell\n\n    clang-tools --install 13\n\nOr install to a specified directory\n\n.. code-block:: shell\n\n    clang-tools --install 13 --directory .\n\nOr install a specified tool, such as clang-format and clang-query version 14.\n\n.. code-block:: shell\n\n    clang-tools --install 14 --tool clang-format clang-query\n\nIf the installed directory is in your path, you can run the installed tools.\n\n.. code-block:: shell\n\n    clang-format-13 --version\n    clang-format version 13.0.0\n\n.. code-block:: shell\n\n    clang-tidy-13 --version\n    LLVM (http://llvm.org/):\n      LLVM version 13.0.0\n      Optimized build.\n      Default target: x86_64-unknown-linux-gnu\n      Host CPU: skylake\n\nSupported versions\n------------------\n\nclang-format, clang-tidy, clang-query, clang-apply-replacements\n***************************************************************\n.. csv-table::\n    :header: \"Version\", \"21\", \"20\", \"19\", \"18\", \"17\", \"16\", \"15\", \"14\", \"13\", \"12\", \"11\", \"10\", \"9\"\n    :stub-columns: 1\n\n    Linux,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️\n    Windows,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️\n    macOS,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️,✔️\n\nFor more details, visit the `clang-tools-static-binaries \u003chttps://github.com/cpp-linter/clang-tools-static-binaries\u003e`_ repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpp-linter%2Fclang-tools-pip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpp-linter%2Fclang-tools-pip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpp-linter%2Fclang-tools-pip/lists"}