A simple runner for clang-tidy.
Project description
clang-tidier
A simple clang-tidy
runner for C and C++ projects.
Installation
clang-tidier
requires Python 3.8 or higher, as well as some version of clang-tidy
visible on the system PATH.
pip3 install clang-tidier
Usage
clang-tidier
is a command-line application
usage: clang-tidier [-h] [--version] [--include <regex> [<regex> ...]] [--exclude <regex> [<regex> ...]] [--werror] [--threads <num>] [compile_db]
clang-tidy runner for C and C++ projects.
positional arguments:
compile_db path to compile_commands.json, or a directory containing it (default: discover automatically)
options:
-h, --help show this help message and exit
--version print the version and exit
--include <regex> [<regex> ...]
regular expression to select source files.
--exclude <regex> [<regex> ...]
regular expression to exclude source files.
--werror stop on the first file that emits warnings
--threads <num> number of threads to use.
v0.1.0 - github.com/marzer/clang-tidier
Exit codes
Value | Meaning |
---|---|
0 | No issues were found |
N , where N is a positive integer |
N issues were found |
-1 | A fatal error occurred |
Changelog
v0.1.1 - 2024/05/16
- Fixed issues with older clang-tidy versions trying to use
--use-color
v0.1.0 - 2024/05/09
- First public release 🎉️
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clang_tidier-0.1.1.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for clang_tidier-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3abd8dbde01238aa67bc9c1b2603fca073fa82d0bb0092789cb656a59a72a4df |
|
MD5 | 12559e40b8933b7ccc2938d1aa6a2950 |
|
BLAKE2b-256 | 549099c0a114c53312e04d8cc11b9e02f1e8d97e21f67aa5717a8e72e9e5b3ba |