format code by LLVM

This commit is contained in:
Alexander Popov 2023-07-31 17:53:39 +03:00
parent b4c43daaea
commit a390ee355e
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
1 changed files with 10 additions and 0 deletions

10
~/C/format-code Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
files=(
"file.c"
)
for file in "${files[@]}"
do
clang-format -i --style=LLVM --sort-includes=false $file
done