diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..afdb247 --- /dev/null +++ b/.clang-format @@ -0,0 +1,21 @@ +--- +BasedOnStyle: LLVM +IndentWidth: 4 +--- +Language: Cpp +# Force pointers to the type for C. +DerivePointerAlignment: false +PointerAlignment: Right + +# Short functions should not be on a single line, unless empty +AllowShortFunctionsOnASingleLine: Empty + +# It makes more sense this way +BreakBeforeBinaryOperators: All +BreakBeforeTernaryOperators: true + +# Aesthetic +AlignOperands: AlignAfterOperator +BinPackParameters: false +--- +# vim: ft=yaml