Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Enable clang-format-10
Browse files Browse the repository at this point in the history
Move away from hardcoding the version of clang-format.

Took from:
https://github.com/openbmc/libmctp/blob/f5afcd7e6597dcdeaa475aa7194ecfae2e82d114/format-code.sh#L3

Change-Id: I574d6ea2f1221001754aef36aa8627d270dff178
Signed-off-by: Gunnar Mills <[email protected]>
  • Loading branch information
gtmills committed Jun 11, 2020
1 parent 4a16a02 commit 3f48959
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion format-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ set -e

echo "Formatting code under $DIR/"

: ${CLANG_FORMAT:=clang-format}

# Only validate certain areas of the code base for
# formatting due to some imported code in webui

if [ -f ".clang-format" ]; then
clang-format-8 -i `git ls-files '*.js'`
$CLANG_FORMAT -i `git ls-files '*.js'`
git --no-pager diff --exit-code
fi

0 comments on commit 3f48959

Please sign in to comment.