summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-08-07 22:55:39 +0000
committerRui Ueyama <ruiu@google.com>2014-08-07 22:55:39 +0000
commit76e8af88b8b4ea8c3381dc5730b27ac6df18bac7 (patch)
treea79071e48dfb632ec6f759729d129be7cba6371c
parent4fb3c474560d58c04fc6e27aef78a74c91a30d92 (diff)
downloadbcm5719-llvm-76e8af88b8b4ea8c3381dc5730b27ac6df18bac7.tar.gz
bcm5719-llvm-76e8af88b8b4ea8c3381dc5730b27ac6df18bac7.zip
[clang-tidy] Fix sed flag.
GNU sed does not recognize -E. Use -r that is supported by both BSD and GNU instead. llvm-svn: 215163
-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 955696950de..8157d243180 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 -E 's#// *[A-Z-]+:.*#//#' ${INPUT_FILE} > ${TEMPORARY_FILE}
+sed -r 's#// *[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