clang-format syntax - use two -- for style

This commit is contained in:
Krishna Vedala 2020-05-29 15:00:56 -04:00
parent 28136f80f0
commit bd6e49559a

View File

@ -23,7 +23,7 @@ jobs:
export line2='IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Allman,'
export line3='AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false,'
export line4='ColumnLimit: 80, AccessModifierOffset: -4 }'
find -name '*.c' -o -name '*.h' | xargs clang-format -i -style="$line1 $line2 $line3 $line4"
find -name '*.c' -o -name '*.h' | xargs clang-format -i --style="$line1 $line2 $line3 $line4"
- name: test
run: git diff