mirror of
https://github.com/kakwa/uts-server
synced 2025-07-04 12:37:08 +02:00
add format script
This commit is contained in:
parent
8fc0360824
commit
92d6183502
1 changed files with 10 additions and 0 deletions
10
goodies/format
Executable file
10
goodies/format
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd `dirname $0`/../
|
||||
|
||||
clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, AllowShortFunctionsOnASingleLine: None, KeepEmptyLinesAtTheStartOfBlocks: false}" -i \
|
||||
`find ./src/ ./inc/ -type f -name "*.cpp" -o \
|
||||
-type f -name "*.c" -o \
|
||||
-type f -name "*.h" -o \
|
||||
-type f -name "*.hpp"`
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue