SPIRV-Cross/format_all.sh
Hans-Kristian Arntzen 4b8ed53974 Add Clang format.
Reformats the entire codebase. Better to do it now than later.

Adds .clang-format and a convenience script format_all.sh which formats
everything automatically.
2016-05-05 09:40:58 +02:00

8 lines
157 B
Bash
Executable File

#!/bin/bash
for file in spirv_*.{cpp,hpp} include/spirv_cross/*.{hpp,h}
do
echo "Formatting file: $file ..."
clang-format -style=file -i $file
done