Skip to content

Script to run clang-format on all files in a directory

Notifications You must be signed in to change notification settings

mkurdej/run-clang-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run-clang-format

Script to run clang-format on all files in a directory

Usage

To run clang-format over all files in source_dir directory, just run:

python run-clang-format.py source_dir

If you want to specify the style for formatting (by default file style is used), then execute:

python run-clang-format.py -style FILE source_dir

You can specify the number of threads that will be used to reformat the code with -j option (when unspecified, the CPU count will be used):

python run-clang-format.py -j 16 source_dir

You may specify multiple directories to run clang-format over:

python run-clang-format.py source_dir1 source_dir2

About

Script to run clang-format on all files in a directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages