From cf68c777c1f42d32ce9d2579dc40384b0579d316 Mon Sep 17 00:00:00 2001 From: Liu Date: Sun, 4 Aug 2019 22:02:54 +0800 Subject: [PATCH] chore: add .clang-format --- .clang-format | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..ea82e39 --- /dev/null +++ b/.clang-format @@ -0,0 +1,35 @@ +Language: Cpp +BasedOnStyle: Google +IndentWidth: 8 +AlignAfterOpenBracket: Align +AlignOperands: true +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortIfStatementsOnASingleLine: false +AlwaysBreakBeforeMultilineStrings: false +AllowShortFunctionsOnASingleLine: None +BinPackArguments: true +BinPackParameters: true +BreakBeforeBraces: Linux +ColumnLimit: 80 +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 72 +Cpp11BracedListStyle: false +IndentCaseLabels: false +IndentWrappedFunctionNames: false +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All +PointerAlignment: Right +ReflowComments: true +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 4 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +SortIncludes: false +UseTab: ForContinuationAndIndentation