From 2474cb7f46b97cc133cda6b95dcf36a2a95a7c87 Mon Sep 17 00:00:00 2001 From: androm3da Date: Fri, 5 Jan 2018 22:20:27 -0600 Subject: [PATCH] Add clang-format configuration --- .clang-format | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..3cc7dfe9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,37 @@ +--- +BasedOnStyle: Webkit +Language: Cpp +SpaceBeforeParens: Always +SpaceAfterTemplateKeyword: true +Standard: Cpp11 +TabWidth: 4 +IndentWidth: 4 +PointerAlignment: Middle +UseTab: ForIndentation +BreakBeforeBraces: Custom +AlignEscapedNewlines: Left +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BreakConstructorInitializersBeforeComma: true +BreakConstructorInitializers: AfterColon +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 0 +ContinuationIndentWidth: 0 +KeepEmptyLinesAtTheStartOfBlocks: false +IndentCaseLabels: true +BraceWrapping: + AfterEnum: true + AfterStruct: true + SplitEmptyFunction: true + AfterControlStatement: true + AfterFunction: true + AfterNamespace: true + AfterUnion: true + AfterClass: true + BeforeCatch: true + BeforeElse: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +...