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