]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add clang format file
authorFlole998 <Flole998@users.noreply.github.com>
Mon, 10 Jun 2024 16:27:52 +0000 (16:27 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 10 Jun 2024 16:52:30 +0000 (16:52 +0000)
.clang-format [new file with mode: 0644]

diff --git a/.clang-format b/.clang-format
new file mode 100644 (file)
index 0000000..4103df2
--- /dev/null
@@ -0,0 +1,39 @@
+---
+AlignAfterOpenBracket: DontAlign
+AlignConsecutiveMacros: 'true'
+AlignConsecutiveAssignments: 'true'
+AlignConsecutiveDeclarations: 'true'
+AlignEscapedNewlines: Left
+AlignOperands: 'false'
+AlignTrailingComments: 'true'
+AllowAllArgumentsOnNextLine: 'false'
+AllowAllParametersOfDeclarationOnNextLine: 'false'
+AllowShortBlocksOnASingleLine: 'true'
+AllowShortCaseLabelsOnASingleLine: 'false'
+AllowShortFunctionsOnASingleLine: Empty
+AllowShortIfStatementsOnASingleLine: Never
+AllowShortLambdasOnASingleLine: Empty
+AllowShortLoopsOnASingleLine: 'false'
+AlwaysBreakAfterReturnType: None
+BinPackArguments: 'false'
+BinPackParameters: 'false'
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+ColumnLimit: 100
+ForEachMacros: [ 'TVH_INPUT_FOREACH', 'TVH_HARDWARE_FOREACH', 'LIST_FOREACH', 'SLIST_FOREACH', 'TAILQ_FOREACH', 'TAILQ_FOREACH_REVERSE', 'STAILQ_FOREACH', 'SIMPLEQ_FOREACH', 'CIRCLEQ_FOREACH', 'CIRCLEQ_FOREACH_REVERSE', 'RB_FOREACH', 'RB_FOREACH_REVERSE' ]
+IndentCaseLabels: 'true'
+PointerAlignment: Left
+ReflowComments: 'true'
+SortIncludes: 'Never'
+SpaceAfterCStyleCast: 'false'
+SpaceAfterLogicalNot: 'false'
+SpaceBeforeInheritanceColon: 'false'
+SpaceBeforeParens: ControlStatements
+SpaceInEmptyParentheses: 'false'
+SpacesInAngles: 'false'
+SpacesInContainerLiterals: 'false'
+SpacesInParentheses: 'false'
+UseTab: Never
+
+...
+