forked from openswoole/ext-openswoole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
code_format.sh
executable file
·35 lines (32 loc) · 1.08 KB
/
code_format.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# core source file
clang-format -i src/core/*.cc
clang-format -i src/coroutine/*.cc
clang-format -i src/lock/*.cc
clang-format -i src/memory/*.cc
clang-format -i src/network/*.cc
clang-format -i src/os/*.cc
clang-format -i src/pipe/*.cc
clang-format -i src/protocol/*.cc
clang-format -i src/reactor/*.cc
clang-format -i src/server/*.cc
clang-format -i src/wrapper/*.cc
# core header file
clang-format -i include/*.h
# ext source file
clang-format -i *.cc
clang-format -i *.h
clang-format -i examples/cpp/*.cc
# core-tests source file
clang-format -i core-tests/src/_lib/*.cpp
clang-format -i core-tests/src/client/*.cpp
clang-format -i core-tests/src/core/*.cpp
clang-format -i core-tests/src/coroutine/*.cpp
clang-format -i core-tests/src/lock/*.cpp
clang-format -i core-tests/src/memory/*.cpp
clang-format -i core-tests/src/network/*.cpp
clang-format -i core-tests/src/os/*.cpp
clang-format -i core-tests/src/process/*.cpp
clang-format -i core-tests/src/protocol/*.cpp
clang-format -i core-tests/src/reactor/*.cpp
clang-format -i core-tests/src/server/*.cpp
clang-format -i core-tests/src/main.cpp