15b2defbdSEd Maste#!/usr/bin/env bash 25b2defbdSEd Maste 35b2defbdSEd Maste# Usage: ./clang-format.sh <extra arguments> 45b2defbdSEd Maste 55b2defbdSEd MasteDIRS="src test examples" 65b2defbdSEd MasteSOURCES=$(find ${DIRS} -name "*.c") 75b2defbdSEd MasteSOURCES+=" $(find ${DIRS} -name "*.h")" 85b2defbdSEd MasteSOURCES+=" $(find ${DIRS} -name "*.cpp")" 95b2defbdSEd Maste 105b2defbdSEd Masteclang-format $@ -style=file -i ${SOURCES} 11