summaryrefslogtreecommitdiff
path: root/clang-tidy-diff.sh
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-12-13 14:22:35 -0800
committerGitHub <noreply@github.com>2019-12-13 14:22:35 -0800
commit321222a26b8fcc3a284b52e5cedd4c3a5b734939 (patch)
tree11b07e8f40f621c5dd12ea940cdf482c5b74fb3c /clang-tidy-diff.sh
parentfbce98c6fdeb2a78ef58079ce1c2a385a17357d6 (diff)
downloadbinaryen-321222a26b8fcc3a284b52e5cedd4c3a5b734939.tar.gz
binaryen-321222a26b8fcc3a284b52e5cedd4c3a5b734939.tar.bz2
binaryen-321222a26b8fcc3a284b52e5cedd4c3a5b734939.zip
Mention that the diff from clang-format and -tidy can be applied (#2526)
Diffstat (limited to 'clang-tidy-diff.sh')
-rwxr-xr-xclang-tidy-diff.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tidy-diff.sh b/clang-tidy-diff.sh
index 292ec6df6..6827f125b 100755
--- a/clang-tidy-diff.sh
+++ b/clang-tidy-diff.sh
@@ -20,7 +20,7 @@ CLANG_TIDY_DIFF=$CLANG_DIR/share/clang/clang-tidy-diff.py
TIDY_MSG=$(git diff -U0 $BRANCH... | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null)
if [ -n "$TIDY_MSG" -a "$TIDY_MSG" != "No relevant changes found." ]
then
- echo "Fix clang-tidy errors before committing!"
+ echo "Please run clang-tidy before committing, or apply this diff:"
echo
# Run clang-tidy once again to show the error
git diff -U0 $BRANCH... | $CLANG_TIDY_DIFF -quiet -p1 2> /dev/null