From 67ba4448843ebe8f8673e1f6f73ab4c385e33e2f Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Mon, 27 Dec 2021 16:05:22 +0200 Subject: [PATCH] Add initial .clang-format --- .clang-format | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..bdebb007 --- /dev/null +++ b/.clang-format @@ -0,0 +1,46 @@ +# Format Style Options - Created with Clang Power Tools +--- +AlignAfterOpenBracket: AlwaysBreak +AlignConsecutiveAssignments: AcrossEmptyLinesAndComments +AlignConsecutiveDeclarations: AcrossEmptyLinesAndComments +AlignConsecutiveMacros: AcrossEmptyLines +AlignOperands: AlignAfterOperator +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: false +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: None +AllowShortLoopsOnASingleLine: true +BasedOnStyle: Google +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterCaseLabel: false + AfterClass: false + AfterControlStatement: true + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: true + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: false + BeforeLambdaBody: false + BeforeWhile: false +BreakBeforeBraces: Linux +BreakBeforeTernaryOperators: false +ConstructorInitializerIndentWidth : 2 +ContinuationIndentWidth: 2 +IncludeBlocks: Preserve +KeepEmptyLinesAtTheStartOfBlocks: true +MaxEmptyLinesToKeep: 2 +ReflowComments: false +SpaceAroundPointerQualifiers: Before +SpacesBeforeTrailingComments: 1 +TabWidth: 2 +...