diff --git a/.clang-format b/.clang-format index 4a6074e..497a580 100644 --- a/.clang-format +++ b/.clang-format @@ -63,4 +63,4 @@ SpacesInParentheses: false SpacesInSquareBrackets: false Standard: Cpp11 TabWidth: 4 -UseTab: ForIndentation +UseTab: Never diff --git a/format-code.sh b/format-code.sh new file mode 100755 index 0000000..4db5ddf --- /dev/null +++ b/format-code.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +find . '(' -name '*.h' -o -name '*.c' ')' -exec clang-format-3.7 -style=file -i '{}' \;