https://clang.llvm.org/docs/ClangFormatStyleOptions.html#

 

Astyle

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

 

相关文章:

  • 2021-11-21
  • 2022-01-22
  • 2021-08-30
  • 2021-09-30
  • 2021-05-12
  • 2021-06-20
  • 2021-04-16
  • 2021-05-11
猜你喜欢
  • 2021-12-21
  • 2022-12-23
  • 2022-01-07
  • 2021-05-22
  • 2021-10-14
相关资源
相似解决方案