diff options
author | hop311 <hop3114@gmail.com> | 2023-10-29 15:11:24 +0100 |
---|---|---|
committer | hop311 <hop3114@gmail.com> | 2023-11-07 23:02:34 +0100 |
commit | 47fff276966d42cba6a2df9093348a5e20a37159 (patch) | |
tree | 556707348d57b81f91627bb8fda5989a305c0d21 /clang-format.sh | |
parent | 9304fd4e109c27a7dfb487a15c9a52c4055ee485 (diff) |
Clang-format formatting (with manual cleanup)
Diffstat (limited to 'clang-format.sh')
-rw-r--r-- | clang-format.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang-format.sh b/clang-format.sh new file mode 100644 index 0000000..3b45543 --- /dev/null +++ b/clang-format.sh @@ -0,0 +1,13 @@ +#/usr/bin/env bash + +echo "\n\nFormatting openvic-extension with clang-format:\n" +find ./extension/src/ -iname *.hpp -o -iname *.cpp | xargs clang-format --verbose -i + +if [ -d ./extension/deps/openvic-simulation ]; then + cd ./extension/deps/openvic-simulation + if [ -f ./clang-format.sh ]; then + ./clang-format.sh + fi +fi + +exit 0 |