From f150fe109a143297fc5ef1b14affe90dcd1ef76f Mon Sep 17 00:00:00 2001 From: Krishna Vedala <7001608+kvedala@users.noreply.github.com> Date: Fri, 29 May 2020 16:00:57 -0400 Subject: [PATCH] reformat for-loop and added verbose to clang-format --- .github/workflows/clang-format.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 7de9f447..d332ed50 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -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