From 66f9a6b7219391b2c8bee5967f5ef7e223fd5d23 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 7 Jul 2020 09:42:00 +0200 Subject: Add clang-format file People should run `make format` before doing a commit. Fix https://github.com/profanity-im/profanity/issues/1396 --- .clang-format | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..c2f306e2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,33 @@ +Language: Cpp +BasedOnStyle: GNU +SpaceAfterCStyleCast: false +SpaceAfterLogicalNot: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeSquareBrackets: false +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +SpacesInConditionalStatement: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +SpaceBeforeParens: ControlStatements +ColumnLimit: 0 +PointerAlignment: Left +AlignAfterOpenBracket: Align +AlignConsecutiveMacros: true +AlignEscapedNewlines: Left +AlignOperands: true +AlignTrailingComments: true +AllowAllArgumentsOnNextLine: true +AllowShortBlocksOnASingleLine: true +IndentWidth: 4 +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: true + AfterControlStatement: Never + AfterFunction: true + BeforeElse: false + #BeforeWhile: false + AfterStruct: true +#BreakStringLiterals: true -- cgit 1.4.1-2-gfad0