Format entire directories of source files with clang-format. This tool also allows to check for formatting without modifying files.
Project description
Format All The Things!
This is a python script that will run clang-format -i
on your code.
Install:
pip install
Basic usage:
clang_format_all --config config.yaml
The yaml file should look like this:
root_dir: "."
#When true, files will only be checked. None will be modified.
check_all: true
file_extensions: ['.cpp', '.cc', '.C', 'CPP', '.c++', 'cp', '.cxx', '.h', '.hh', '.hpp']
exclude_dirs:
- "fmt"
- "simple_gpio"
- "build"
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_format_all-0.0.1.tar.gz
(39.6 kB
view hashes)
Built Distribution
Close
Hashes for clang_format_all-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a35b2d50dbc34b389655b2b84fb620e2127c15e0de7294dfa2fb83b462b2db11 |
|
MD5 | efd82514cc8c81acaadeb07ef917cfa8 |
|
BLAKE2b-256 | c92e2d0287284bf258b5eae36c302a98a313affc1b87782ad1b5297406f1b7d3 |