]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add .clang-format configuration with all FOREACH macros copilot/add-clang-format-configuration 1955/head
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Tue, 7 Oct 2025 19:16:44 +0000 (19:16 +0000)
committercopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Tue, 7 Oct 2025 19:16:44 +0000 (19:16 +0000)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
.clang-format [new file with mode: 0644]

diff --git a/.clang-format b/.clang-format
new file mode 100644 (file)
index 0000000..81a0e61
--- /dev/null
@@ -0,0 +1,42 @@
+---
+AlignAfterOpenBracket: DontAlign
+AlignConsecutiveMacros: 'true'
+AlignConsecutiveAssignments: 'true'
+AlignConsecutiveDeclarations: 'true'
+AlignEscapedNewlines: Left
+AlignOperands: 'false'
+AlignTrailingComments: 'true'
+AllowAllArgumentsOnNextLine: 'false'
+AllowAllParametersOfDeclarationOnNextLine: 'false'
+AllowShortBlocksOnASingleLine: 'false'
+AllowShortCaseLabelsOnASingleLine: 'false'
+AllowShortFunctionsOnASingleLine: Empty
+AllowShortIfStatementsOnASingleLine: Never
+AllowShortLambdasOnASingleLine: Empty
+AllowShortLoopsOnASingleLine: 'false'
+AlwaysBreakAfterReturnType: None
+BinPackArguments: 'false'
+BinPackParameters: 'false'
+BitFieldColonSpacing: None
+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', 'CHANNEL_FOREACH', 'DVB_DESC_FOREACH', 'DVB_LOOP_FOREACH', 'HTSMSG_FOREACH', 'PKTREF_FOREACH', 'PROVIDERS_FOREACH', 'UUID_SET_FOREACH' ]
+IndentCaseLabels: 'true'
+PointerAlignment: Right
+ReflowComments: 'true'
+SortIncludes: 'Never'
+SpaceAfterCStyleCast: 'false'
+SpaceAfterLogicalNot: 'false'
+SpaceBeforeInheritanceColon: 'false'
+SpaceBeforeParens: Custom
+SpaceBeforeParensOptions:
+  AfterControlStatements: 'true'
+  AfterForeachMacros: 'false'
+SpaceInEmptyParentheses: 'false'
+SpacesInAngles: 'false'
+SpacesInContainerLiterals: 'false'
+SpacesInParentheses: 'false'
+UseTab: Never
+
+...