diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..ac4266e --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +BasedOnStyle: LLVM +UseTab: Always +TabWidth: 4 +IndentWidth: 4 +AccessModifierOffset: -4 +IndentCaseLabels: false +ColumnLimit: 0 +PointerAlignment: Left +PackConstructorInitializers: Never diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..9862556 --- /dev/null +++ b/format.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +find src/ ui/ \ + \( \ + -name '*.cxx' -o \ + -name '*.hxx' -o \ + -name '*.c' -o \ + -name '*.h' \ + \) \ + -print \ + -exec 'clang-format' '-i' '{}' \;