#!/usr/bin/env bash shopt -s extglob if [ -z "$CLANG_FORMAT" ]; then CLANG_FORMAT=clang-format fi $CLANG_FORMAT -i extras/*.cpp $CLANG_FORMAT -i meshIO/**/*.{h,cpp} $CLANG_FORMAT -i samples/**/*.{h,cpp} $CLANG_FORMAT -i test/*.{h,cpp} $CLANG_FORMAT -i bindings/*/*.cpp $CLANG_FORMAT -i bindings/c/include/manifold/*.h $CLANG_FORMAT -i bindings/wasm/*.{js,ts} $CLANG_FORMAT -i bindings/wasm/examples/*.{js,ts,html} $CLANG_FORMAT -i bindings/wasm/examples/public/*.{js,ts} $CLANG_FORMAT -i src/*/src/*.{h,cpp} $CLANG_FORMAT -i src/*/include/manifold/*.h black bindings/python/examples/*.py