From ec4cad17173d910076192d7ec21b87a63c9b9ec0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:16:44 +0000 Subject: [PATCH] Add .clang-format configuration with all FOREACH macros Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com> --- .clang-format | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .clang-format 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 + +... -- 2.47.3