mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2026-04-02 08:13:12 +01:00
Format all the code using clang-format.
Add a script `format_code.sh` to easily format the code.
This commit is contained in:
15
format_code.sh
Executable file
15
format_code.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
files=(
|
||||
"src/installer/kiwix-install.cpp"
|
||||
"src/searcher/kiwix-search.cpp"
|
||||
"src/reader/kiwix-read.cpp"
|
||||
"src/manager/kiwix-manage.cpp"
|
||||
"src/server/kiwix-serve.cpp"
|
||||
)
|
||||
|
||||
for i in "${files[@]}"
|
||||
do
|
||||
echo $i
|
||||
clang-format -i -style=file $i
|
||||
done
|
||||
Reference in New Issue
Block a user