https://clang.llvm.org/docs/ClangFormatStyleOptions.html#
http://astyle.sourceforge.net/
http://astyle.sourceforge.net/astyle.html
批量格式化
bash命令如下:
for f in $(find . -name ‘*.c‘ -or -name ‘*.cpp‘ -type f); do astyle --style=kr $f; done
即如下bash脚本:
#! /bin/bash for f in $(find . -name ‘*.c‘ -or -name ‘*.cpp‘ -type f) do astyle --style=kr $f done
原文:https://www.cnblogs.com/sinferwu/p/12098485.html