-
Notifications
You must be signed in to change notification settings - Fork 0
/
format_code.sh
executable file
·35 lines (27 loc) · 948 Bytes
/
format_code.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
#!/bin/bash
set -e
pushd "$(dirname "$0")"
echo "Formatting Code...."
clang-format -i app/src/*.cpp
clang-format -i app/inc/*.hpp
clang-format -i test/*.cpp
clang-format -i zebral/camera/src/*.cpp
clang-format -i zebral/camera/inc/*.hpp
clang-format -i zebral/camera/test/*.cpp
clang-format -i zebral/common/src/*.cpp
clang-format -i zebral/common/inc/*.hpp
clang-format -i zebral/common/test/*.cpp
clang-format -i zebral/serial/src/*.cpp
clang-format -i zebral/serial/inc/*.hpp
clang-format -i zebral/serial/test/*.cpp
echo "Formatting CMake..."
cmake-format -i CMakeLists.txt
cmake-format -i app/CMakeLists.txt
cmake-format -i test/CMakeLists.txt
cmake-format -i zebral/common/CMakeLists.txt
cmake-format -i zebral/common/test/CMakeLists.txt
cmake-format -i zebral/camera/CMakeLists.txt
cmake-format -i zebral/camera/test/CMakeLists.txt
cmake-format -i zebral/serial/CMakeLists.txt
cmake-format -i zebral/serial/test/CMakeLists.txt
popd