summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-08-08 00:19:22 +0000
committerRui Ueyama <ruiu@google.com>2014-08-08 00:19:22 +0000
commit161b7fd1e16c2cfbc47825520d6cea9b866edc1c (patch)
treedb01b84f5a2817af7401cd0c6d2cd35001c46e51
parentd96b99740d1f2c47941e589d9719016388ee6453 (diff)
downloadbcm5719-llvm-161b7fd1e16c2cfbc47825520d6cea9b866edc1c.tar.gz
bcm5719-llvm-161b7fd1e16c2cfbc47825520d6cea9b866edc1c.zip
[clang-tidy] Fix sed flag, third try
llvm-svn: 215175
-rwxr-xr-xclang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh b/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh
index 7b4acbb0897..f39a659bbac 100755
--- a/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh
+++ b/clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh
@@ -20,7 +20,7 @@ set -o errexit
# Remove the contents of the CHECK lines to avoid CHECKs matching on themselves.
# We need to keep the comments to preserve line numbers while avoiding empty
# lines which could potentially trigger formatting-related checks.
-sed 's#// *[A-Z-]+:.*#//#' ${INPUT_FILE} > ${TEMPORARY_FILE}
+sed 's#// *[A-Z-][A-Z-]*:.*#//#' ${INPUT_FILE} > ${TEMPORARY_FILE}
clang-tidy ${TEMPORARY_FILE} -fix --checks="-*,${CHECK_TO_RUN}" \
-- --std=c++11 $* > ${TEMPORARY_FILE}.msg 2>&1
OpenPOWER on IntegriCloud