From a3051223f2c065069de7ee04f42a4df76f24120c Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 17 Feb 2019 10:13:17 +0100 Subject: [PATCH] Add clang-format file --- .clang-format | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..d27e5fd --- /dev/null +++ b/.clang-format @@ -0,0 +1,47 @@ +# Visual Studio generated .clang-format file + +# The style options in this file are a best effort attempt to replicate the +# current IDE formatting configuration from Tools > Options. The following +# style options, however, should be verified: +# AfterClass; AfterControlStatement; AfterEnum; AfterFunction; AfterNamespace; +# AfterStruct; AfterUnion + +BasedOnStyle: LLVM +AccessModifierOffset: -4 +AlignAfterOpenBracket: DontAlign +AllowShortBlocksOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +BraceWrapping: + AfterClass: true + AfterControlStatement: false # TODO: verify + AfterEnum: false # TODO: verify + AfterFunction: true + AfterNamespace: false # TODO: verify + AfterStruct: false # TODO: verify + AfterUnion: false # TODO: verify + BeforeCatch: true + BeforeElse: true + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true +BreakBeforeBraces: Custom +ColumnLimit: 0 +Cpp11BracedListStyle: true +DerivePointerAlignment: true +FixNamespaceComments: false +IndentCaseLabels: false +IndentPPDirectives: None +IndentWidth: 4 +MaxEmptyLinesToKeep: 10 +NamespaceIndentation: All +SortIncludes: true +SortUsingDeclarations: false +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +TabWidth: 4 +UseTab: true