aboutsummaryrefslogtreecommitdiff
path: root/clang-format.sh
blob: 3b45543dcaa45db4ecda84827a77a44f5b0e6f8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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