Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/style.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

set -euo pipefail

if [[ $(clang-format --version) != **"version 6"** ]]; then
echo "Please upgrade to clang-format version 6."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add instructions - brew upgrade clang-format

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, done.

echo "If it's installed via homebrew you can run: brew upgrade clang-format"
exit 1
fi

(
if [[ $# -gt 0 ]]; then
if git rev-parse "$1" -- >& /dev/null; then
Expand Down