mirror of
https://github.com/kakwa/uts-server
synced 2024-12-04 23:15:54 +01:00
add format script
This commit is contained in:
parent
291f58bd7e
commit
7c45a71f22
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…
Reference in New Issue
Block a user