mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2026-04-28 11:40:23 +00:00
Format all the code using clang-format.
Add a script `format_code.sh` to easily format the code.
This commit is contained in:
parent
856bfc675a
commit
4e3ff03059
7 changed files with 697 additions and 562 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue