mirror of
https://github.com/diasurgical/devilution.git
synced 2026-05-21 05:40:54 +00:00
e18a70f82b
The Source/.clang-format config is used for *.cpp files. The root .clang-format config is used for *.h files.
20 lines
338 B
Bash
Executable File
20 lines
338 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ROOT=`pwd`
|
|
|
|
CPP_DONE="doom.cpp movie.cpp pfile.cpp player.cpp plrmsg.cpp sound.cpp spells.cpp tmsg.cpp"
|
|
|
|
cd ${ROOT}/Source
|
|
for f in $CPP_DONE; do
|
|
echo "Formatting $f"
|
|
clang-format -style=file -i $f
|
|
done
|
|
|
|
H_DONE="enums.h structs.h"
|
|
|
|
cd ${ROOT}
|
|
for f in $H_DONE; do
|
|
echo "Formatting $f"
|
|
clang-format -style=file -i $f
|
|
done
|