1.4K Star 7.6K Fork 1.4K

GVP方舟编译器 / OpenArkCompiler

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
format.sh 402 Bytes
一键复制 编辑 原始数据 按行查看 历史
weixin93 提交于 2023-06-29 22:03 . update llvm15:set ENHANCED_CLANG PATH
#!/bin/bash
# usage: in OpenArkCompiler dir, ./format.sh xxx.cpp
ROOT_DIR=$(cd "$(dirname $0)"; pwd)
CLANG_FORMAT=$ROOT/tools/clang+llvm-15.0.4-x86_64-linux-gnu-ubuntu-18.04-enhanced/bin/clang-format
$CLANG_FORMAT -style=file -i $1
sed -i -e 's/ \*,/\*,/g' -e 's/ \*>/\*>/g' -e 's/ \*)/\*)/g' -e 's/ \&,/\&,/g' -e 's/ \&>/\&>/g' -e 's/ \&)/\&)/g' $1
sed -i ":a;$!N;s/enum\(.*\)\n{/enum\1 {/g;ba" $1
C++
1
https://gitee.com/openarkcompiler/OpenArkCompiler.git
git@gitee.com:openarkcompiler/OpenArkCompiler.git
openarkcompiler
OpenArkCompiler
OpenArkCompiler
master

搜索帮助