首页 > 其他 > 详细

格式化代码

时间:2019-12-25 20:50:15      阅读:78      评论:0      收藏:0      [点我收藏+]

 

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!