From 92594cdc1ce5acf529a7bb3c405f12ea2eec8812 Mon Sep 17 00:00:00 2001 From: Ay'yaruq Dotharl Date: Thu, 7 Dec 2017 17:39:06 +1100 Subject: [PATCH] Add clang-format config --- .clang-format | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..295a0333 --- /dev/null +++ b/.clang-format @@ -0,0 +1,42 @@ +--- +Language: Cpp +BasedOnStyle: LLVM +AccessModifierOffset: -3 +AllowShortFunctionsOnASingleLine: InlineOnly +AlwaysBreakTemplateDeclarations: true +BraceWrapping: + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterFunction: true + AfterNamespace: false + AfterStruct: true + AfterUnion: true + AfterExternBlock: false + BeforeCatch: true + BeforeElse: true + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Custom +BreakBeforeInheritanceComma: true +BreakBeforeTernaryOperators: false +BreakConstructorInitializers: AfterColon +BreakStringLiterals: false +ColumnLimit: 120 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +Cpp11BracedListStyle: false +FixNamespaceComments: true +IndentWidth: 3 +KeepEmptyLinesAtTheStartOfBlocks: true +NamespaceIndentation: Inner +PointerAlignment: Left +SortUsingDeclarations: false +SpaceAfterTemplateKeyword: false +SpaceBeforeParens: Never +SpacesInAngles: true +SpacesInParentheses: true +Standard: Cpp11 +UseTab: Never