mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
added missing semicolon after for-loop
This commit is contained in:
parent
aaed136308
commit
e693bdd0f3
13
.github/workflows/clang-format.yml
vendored
13
.github/workflows/clang-format.yml
vendored
@ -19,12 +19,11 @@ jobs:
|
||||
submodules: true
|
||||
- name: Formatter
|
||||
run: |
|
||||
export line1='{ BasedOnStyle: LLVM, UseTab: Never,'
|
||||
export line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,'
|
||||
export line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,'
|
||||
export line4='ColumnLimit: 80, AccessModifierOffset: -4 }'
|
||||
for fname in $(find . -name '*.c' -o -name '*.h'); do clang-format -i --style="$line1 $line2 $line3 $line4" $fname; done
|
||||
|
||||
export line1="{ BasedOnStyle: LLVM, UseTab: Never,"
|
||||
export line2="IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,"
|
||||
export line3="AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,""
|
||||
export line4="ColumnLimit: 80, AccessModifierOffset: -4 }"
|
||||
for fname in $(find . -name '*.c' -o -name '*.h'); do clang-format -i --style="$line1 $line2 $line3 $line4" "$fname"; done;
|
||||
- name: test
|
||||
run: git diff
|
||||
run: git status
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user