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"
This tool uses clang-format. For supported languages/options supported in clang-format look here
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.1.6.tar.gz
(40.1 kB
view hashes)
Built Distribution
Close
Hashes for clang_format_all-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859fbe2a4730201e931414ad4fb119cc34681dac2ed602d784a354145dd3d72e |
|
MD5 | e682d747ace05f821fc2860f5a4dd513 |
|
BLAKE2b-256 | 3454cc72817875f59885864eadc74c00eed516f95fc20072a0716e248dafe34c |