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.
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.2.tar.gz
(39.8 kB
view hashes)
Built Distribution
Close
Hashes for clang_format_all-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 333f70addb5b47d072d90667462b62b7526ef183edaf0c7a4d525fd05eb353e7 |
|
MD5 | beda46bd2b3cb2347e74a48ef108417a |
|
BLAKE2b-256 | 02bdeab39abccca508ca28a36e6ea129547022d1a36d7057c0c052f06dc0dbc7 |