diff options
author | Hop311 <Hop3114@gmail.com> | 2023-11-08 22:23:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 22:23:39 +0100 |
commit | f8da0860795d273452501fa4d7fbfcc40073a884 (patch) | |
tree | 556707348d57b81f91627bb8fda5989a305c0d21 /clang-format.sh | |
parent | 57822949341b86649614b343afa2c740efe00ac2 (diff) | |
parent | 47fff276966d42cba6a2df9093348a5e20a37159 (diff) |
Merge pull request #162 from OpenVicProject/changes
Lots of Changes
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 |