Skip to content

Commit 62a83c3

Browse files
committed
Fix YAML formatting and correct clang-format settings
- Correct indentation and branch syntax in GitHub Actions workflow - Correct AllowShortIfStatementsOnASingleLine and AfterControlStatement with proper values
1 parent c369a8b commit 62a83c3

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.clang-format

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
---
21
BasedOnStyle: LLVM
32
IndentWidth: 4
43
TabWidth: 4
54
UseTab: Never
65
BreakBeforeBraces: Attach
6+
77
BraceWrapping:
88
AfterFunction: false
9-
AfterControlStatement: false
9+
AfterControlStatement: MultiLine
1010
AfterStruct: false
1111
AfterEnum: false
1212
AfterClass: false
13+
1314
ColumnLimit: 80
14-
AllowShortIfStatementsOnASingleLine: true
15+
AllowShortIfStatementsOnASingleLine: WithoutElse
1516
AlignAfterOpenBracket: Align
1617
SpacesBeforeTrailingComments: 1

.github/workflows/c.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ name: C CI
22

33
on:
44
push:
5-
branches: [ "master" ]
5+
branches: [master]
66
pull_request:
7-
branches: [ "master" ]
7+
branches: [master]
88

99
jobs:
1010
check-formatting:
11-
1211
runs-on: ubuntu-latest
13-
1412
steps:
15-
- uses: actions/checkout@v4
16-
- run: clang-format -n -Werror src/*.c
17-
- run: clang-format -n -Werror include/*.h
18-
- run: clang-format -n -Werror nob.c
13+
- uses: actions/checkout@v4
14+
- run: clang-format -n -Werror src/*.c
15+
- run: clang-format -n -Werror include/*.h
16+
- run: clang-format -n -Werror nob.c

0 commit comments

Comments
 (0)