From c1e5a7b172a8a76dc89d57d178a1fb5df078a7ba Mon Sep 17 00:00:00 2001 From: o9000 Date: Thu, 13 Apr 2017 14:06:37 +0200 Subject: [PATCH] Set indentation to use spaces instead of tabs, add auto indentation script --- .clang-format | 2 +- format-code.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 format-code.sh 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 '{}' \;