Skip to main content

Format entire directories of source files with clang-format. This tool also allows to check for formatting without modifying files.

Project description

PyPI version Run Python Tests

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clang_format_all-0.1.6-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file clang_format_all-0.1.6.tar.gz.

File metadata

  • Download URL: clang_format_all-0.1.6.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for clang_format_all-0.1.6.tar.gz
Algorithm Hash digest
SHA256 be821c604afa10606548fe3b5e7f13ca3436f48b196c5e6ea727462d2cb3ba86
MD5 0d5609b92dffd59e9455e20c26aedd6c
BLAKE2b-256 69808ba44d8a5df5e1f5890eeb7d4ff5060ab31b29b6c2a5fff6b2c7d34835cf

See more details on using hashes here.

File details

Details for the file clang_format_all-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for clang_format_all-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 859fbe2a4730201e931414ad4fb119cc34681dac2ed602d784a354145dd3d72e
MD5 e682d747ace05f821fc2860f5a4dd513
BLAKE2b-256 3454cc72817875f59885864eadc74c00eed516f95fc20072a0716e248dafe34c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page