Skip to content

Commit 11cafda

Browse files
committed
Trying a different clang-format file for the formatting. Only formatting tasks.c on this
1 parent 67452e2 commit 11cafda

File tree

3 files changed

+6047
-5050
lines changed

3 files changed

+6047
-5050
lines changed

.clang-format

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
Language: Cpp
3+
AlignAfterOpenBracket: BlockIndent
4+
AlignConsecutiveAssignments: None
5+
AlignConsecutiveBitFields: AcrossEmptyLinesAndComments
6+
AlignConsecutiveDeclarations: None
7+
AlignConsecutiveMacros: AcrossEmptyLinesAndComments
8+
AlignEscapedNewlines: Left
9+
AlignOperands: Align
10+
AlignTrailingComments: true
11+
AllowAllArgumentsOnNextLine: false
12+
AllowAllParametersOfDeclarationOnNextLine: false
13+
AllowShortBlocksOnASingleLine: Never
14+
AllowShortCaseLabelsOnASingleLine: false
15+
AllowShortEnumsOnASingleLine: false
16+
AllowShortFunctionsOnASingleLine: None
17+
AllowShortIfStatementsOnASingleLine: false
18+
AllowShortLambdasOnASingleLine: All
19+
AllowShortLoopsOnASingleLine: false
20+
AlwaysBreakAfterReturnType: None
21+
AlwaysBreakBeforeMultilineStrings: false
22+
AlwaysBreakTemplateDeclarations: Yes
23+
BinPackArguments: false
24+
BinPackParameters: false
25+
BitFieldColonSpacing: Both
26+
BraceWrapping:
27+
AfterCaseLabel: true
28+
AfterClass: true
29+
AfterControlStatement: Always
30+
AfterEnum: true
31+
AfterExternBlock: false
32+
AfterFunction: true
33+
AfterNamespace: true
34+
AfterStruct: true
35+
AfterUnion: true
36+
BeforeCatch: true
37+
BeforeElse: true
38+
BeforeLambdaBody: false
39+
BeforeWhile: false
40+
IndentBraces: false
41+
SplitEmptyFunction: true
42+
SplitEmptyRecord: true
43+
SplitEmptyNamespace: true
44+
BreakBeforeBinaryOperators: None
45+
BreakBeforeBraces: Custom
46+
BreakBeforeConceptDeclarations: true
47+
BreakBeforeTernaryOperators: true
48+
BreakConstructorInitializers: BeforeColon
49+
BreakInheritanceList: BeforeColon
50+
BreakStringLiterals: true
51+
ColumnLimit: 80
52+
CompactNamespaces: false
53+
ContinuationIndentWidth: 4
54+
Cpp11BracedListStyle: false
55+
DeriveLineEnding: false
56+
DerivePointerAlignment: false
57+
EmptyLineBeforeAccessModifier: Always
58+
FixNamespaceComments: true
59+
IncludeBlocks: Preserve
60+
IndentCaseBlocks: false
61+
IndentCaseLabels: true
62+
IndentExternBlock: NoIndent
63+
IndentGotoLabels: true
64+
IndentPPDirectives: BeforeHash
65+
IndentWidth: 4
66+
KeepEmptyLinesAtTheStartOfBlocks: false
67+
MaxEmptyLinesToKeep: 1
68+
NamespaceIndentation: None
69+
PenaltyBreakAssignment: 1000
70+
PenaltyBreakBeforeFirstCallParameter: 200
71+
PenaltyBreakComment: 50
72+
PenaltyBreakFirstLessLess: 120
73+
PenaltyBreakString: 100
74+
PenaltyBreakTemplateDeclaration: 10
75+
PenaltyExcessCharacter: 100
76+
PenaltyIndentedWhitespace: 0
77+
PenaltyReturnTypeOnItsOwnLine: 10000
78+
PointerAlignment: Middle
79+
ReflowComments: true
80+
SortIncludes: true
81+
SortUsingDeclarations: true
82+
SpaceAfterCStyleCast: true
83+
SpaceAfterLogicalNot: false
84+
SpaceAfterTemplateKeyword: false
85+
SpaceBeforeCpp11BracedList: true
86+
SpaceBeforeCtorInitializerColon: false
87+
SpaceBeforeInheritanceColon: false
88+
SpaceBeforeParens: Never
89+
SpaceBeforeRangeBasedForLoopColon: false
90+
SpaceBeforeSquareBrackets: false
91+
SpaceInEmptyBlock: false
92+
SpaceInEmptyParentheses: false
93+
SpacesBeforeTrailingComments: 1
94+
SpacesInAngles: false
95+
SpacesInConditionalStatement: true
96+
SpacesInContainerLiterals: true
97+
SpacesInCStyleCastParentheses: true
98+
SpacesInParentheses: true
99+
SpacesInSquareBrackets: true
100+
TabWidth: 4
101+
UseCRLF: false
102+
UseTab: Never
103+
...
104+

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ on:
77
workflow_dispatch:
88
jobs:
99
formatting:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
1313
- name: Check Formatting of FreeRTOS-Kernel Files
14-
uses: FreeRTOS/CI-CD-Github-Actions/formatting@main
14+
uses: FreeRTOS/CI-CD-Github-Actions/clang-formatting@v2
15+
with:
16+
exclude-dirs: portable, include, examples
17+
exclude-files: timers.c, stream_buffer.c, queue.c, list.c, event_groups.c, croutine.c
1518

1619
spell-check:
1720
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)