diff options
author | Hans-Kristian Arntzen <hans-kristian.arntzen@arm.com> | 2016-05-05 10:33:18 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <hans-kristian.arntzen@arm.com> | 2016-05-05 10:40:58 +0300 |
commit | 4b8ed53974c79a9dcbc55c14889e8a1cf30d1b77 (patch) | |
tree | 6f918be6498f5523e202b28b4be7d75913c63579 /format_all.sh | |
parent | 9d4b5c0c595d3a6c1e057df2baaa1aa16a30b787 (diff) |
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.
Diffstat (limited to 'format_all.sh')
-rwxr-xr-x | format_all.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/format_all.sh b/format_all.sh new file mode 100755 index 00000000..03b9f879 --- /dev/null +++ b/format_all.sh @@ -0,0 +1,7 @@ +#!/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 |