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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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