Fix bug in formatting script
I noticed a bug in the formatting script run-clang-format.sh
, so that header files are actually not reformatted according to google style guide.
The line (https://git.astron.nl/RD/EveryBeam/-/blob/master/scripts/run-clang-format.sh#L15)
find . -path ./external -prune -o -name '*.h' -prune -o -name '*.cc' -exec clang-format -i -style=file \{\} +
should read
find . -path ./external -prune -o -type f \( -name "*.h" -o -name "*.cc" \) -exec clang-format -i -style=file \{\} +
otherwise the header formatting is skipped and only the .cc
files are reformatted.
Will be fixed once #3 (closed) will be solved and merged in order to prevent merge conflicts.