ClangFormat Style File, Application
1. Style File
ClangFormat can configure the Format form through Style files.
1.1. Ssup2’s Cpp Style
| |
Create a .clang-format file in the Project Root folder with the contents of [File 1].
2. Style Application
$ find -name '*.c' -o -name '*.cc' -o -name '*.h' | xargs clang-formatExecute the above command from the Project Root folder.