summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2017-10-30 09:39:16 +0100
committerLemonBoy <thatlemon@gmail.com>2017-11-02 09:29:33 +0100
commit56013367983b61d8ee4d2e905767ce50b25ffb82 (patch)
tree6b466df8222f97904bf1fad77b74d68a42deb45d /.clang-format
parentcfa51c5ae2c06f4b93f443c986ec0bc316c860a4 (diff)
downloadirssi-56013367983b61d8ee4d2e905767ce50b25ffb82.zip
Turn the style guide into a clang-format file
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format37
1 files changed, 37 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..5501478f
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,37 @@
+# IndentPPDirectives: None
+# 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: true
+BinPackArguments: true
+BinPackParameters: true
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+BreakBeforeTernaryOperators: true
+ColumnLimit: 100
+IndentCaseLabels: true
+IndentWidth: 8
+IndentWrappedFunctionNames: true
+KeepEmptyLinesAtTheStartOfBlocks: false
+Language: Cpp
+MaxEmptyLinesToKeep: 1
+PointerAlignment: Right
+SortIncludes: true
+SpaceAfterCStyleCast: false
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: false
+SpacesInCStyleCastParentheses: false
+SpacesInSquareBrackets: false
+TabWidth: 8
+UseTab: ForIndentation