diff options
-rw-r--r-- | .clang-format | 9 | ||||
-rwxr-xr-x | git-clang-format.sh | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..00edbfc92 --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +Language: Cpp +# BasedOnStyle + +TabWidth: 8 +UseTab: Always +IndentWidth: 3 +ColumnLimit: 0 +BreakBeforeBraces: Allman +AccessModifierOffset: 0 diff --git a/git-clang-format.sh b/git-clang-format.sh new file mode 100755 index 000000000..7cbb5ccd7 --- /dev/null +++ b/git-clang-format.sh @@ -0,0 +1,2 @@ +#!/bin/sh +git clang-format-3.8 --diff "$@" | sed "s#+/\*\}\}\}\*/#+ /*}}}*/#" | patch -p1 |