From e747b343c332907110dad26e15c20daf3d7d7125 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Mon, 25 Sep 2023 01:39:03 +0200 Subject: init --- .clang-format | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..6df0ff7 --- /dev/null +++ b/.clang-format @@ -0,0 +1,65 @@ +BasedOnStyle: LLVM +UseTab: Never +TabWidth: 2 +IndentWidth: 2 + +Language: Cpp +Standard: Auto + +ColumnLimit: 70 +MaxEmptyLinesToKeep: 1 +SpacesBeforeTrailingComments: 1 +AccessModifierOffset: -2 +PenaltyBreakAssignment: 100 +PenaltyReturnTypeOnItsOwnLine: 200 + +IndentCaseLabels: true +IndentExternBlock: NoIndent +IndentGotoLabels: false +IndentPPDirectives: AfterHash +IndentRequires: true +IndentWrappedFunctionNames: false +NamespaceIndentation: All + +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeCpp11BracedList: true +SpaceBeforeCtorInitializerColon: true +SpaceBeforeInheritanceColon: true +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeSquareBrackets: false +SpaceInEmptyBlock: true +SpaceInEmptyParentheses: false +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInConditionalStatement: false +SpacesInSquareBrackets: false + +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: Consecutive +AlignConsecutiveBitFields: Consecutive +AlignConsecutiveDeclarations: Consecutive +AlignEscapedNewlines: Left +AllowShortLambdasOnASingleLine: All +AllowShortFunctionsOnASingleLine: Empty +AllowShortBlocksOnASingleLine: Always +AllowShortCaseLabelsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +AllowAllArgumentsOnNextLine: true +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: true +BinPackParameters: true +BreakBeforeConceptDeclarations: true +BreakConstructorInitializers: AfterColon +Cpp11BracedListStyle: false +EmptyLineBeforeAccessModifier: LogicalBlock +FixNamespaceComments: false +PointerAlignment: Right +ReflowComments: true +SortIncludes: Never +SortUsingDeclarations: true -- cgit v1.2.3