diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-11-30 11:41:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-30 11:41:19 +0100 |
commit | 117f6662588332a56e0b1b9f2089cb4e2be5c8dd (patch) | |
tree | bd4cfe79e2c9fd5cd54486f888f6c10d2df39a92 | |
parent | 5637a8df4305576a402f2dd272252835d4e84bb5 (diff) | |
parent | ba3c5801a4bb175fe1e0d0fd273ae15318dd2b03 (diff) | |
download | irssi-117f6662588332a56e0b1b9f2089cb4e2be5c8dd.zip |
Merge pull request #784 from LemonBoy/clangfmt
Turn the style guide into a clang-format file
-rw-r--r-- | .clang-format | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..1180910e --- /dev/null +++ b/.clang-format @@ -0,0 +1,38 @@ +# IndentPPDirectives: AfterHash +# SpaceInParentheses: false +AlignAfterOpenBracket: Align +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignOperands: true +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: false +BinPackArguments: true +BinPackParameters: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Linux +BreakBeforeTernaryOperators: false +ColumnLimit: 100 +IndentCaseLabels: false +IndentWidth: 8 +IndentWrappedFunctionNames: true +KeepEmptyLinesAtTheStartOfBlocks: false +Language: Cpp +Cpp11BracedListStyle: false +MaxEmptyLinesToKeep: 1 +PointerAlignment: Right +SortIncludes: true +SpaceAfterCStyleCast: true +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +SpacesInSquareBrackets: false +TabWidth: 8 +UseTab: ForIndentation |