From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:16:44 +0000 (+0000) Subject: Add .clang-format configuration with all FOREACH macros X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1955%2Fhead;p=thirdparty%2Ftvheadend.git Add .clang-format configuration with all FOREACH macros Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com> --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..81a0e615a --- /dev/null +++ b/.clang-format @@ -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 + +...