Metadata-Version: 2.1
Name: clang-tools
Version: 0.1.0
Summary: Install clang-tools (clang-format, clang-tidy) with pip
Author: Peter Shen
Author-email: xianpeng.shen@gmail.com
License: MIT License
Project-URL: Source, https://github.com/shenxianpeng/clang-tools-pip
Project-URL: Tracker, https://github.com/shenxianpeng/clang-tools-pip/issues
Keywords: clang,clang-tools,clang-extra,clang-tidy,clang-format
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Intended Audience :: Information Technology
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE

# clang-tools
[![PyPI](https://img.shields.io/pypi/v/clang-tools)](https://pypi.org/project/clang-tools/)[![Python test](https://github.com/shenxianpeng/clang-tools-pip/actions/workflows/python-test.yml/badge.svg)](https://github.com/shenxianpeng/clang-tools-pip/actions/workflows/python-test.yml)[![codecov](https://codecov.io/gh/shenxianpeng/clang-tools-pip/branch/master/graph/badge.svg?token=40G5ZOIRRR)](https://codecov.io/gh/shenxianpeng/clang-tools-pip) 

Install clang-tools (clang-format, clang-tidy) with pip.

## Install

### Install `clang-tools` with pip

```bash
$ sudo pip install clang-tools
```

### Usage

```bash
$ sudo clang-tools --help
usage: clang-tools [-h] [-i INSTALL]

optional arguments:
  -h, --help            show this help message and exit
  -i INSTALL, --install INSTALL
                        Install clang-tools with specific version. default is 12.
```
For example, install clang-tools version 13

```bash
$ sudo clang-tools --install 13

$ clang-format-13 --version
clang-format version 13.0.0

$ clang-tidy-13 --version
LLVM (http://llvm.org/):
  LLVM version 13.0.0
  Optimized build.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: skylake
```
