#!/bin/bash set -euo pipefail echo "=== Clang Format ===" find src include tests examples -name "*.cpp" -o -name "*.h" | while read f; do clang-format -i "$f" 2>/dev/null && echo " formatted: $f" || true done echo "Done."