Files
devilution/format.sh
T
Robin Eklind e18a70f82b Use .clang-format config instead of -style command line settings.
The Source/.clang-format config is used for *.cpp files.

The root .clang-format config is used for *.h files.
2018-10-06 22:52:58 +02:00

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