diff options
| author | Rui Ueyama <ruiu@google.com> | 2014-08-07 23:33:38 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2014-08-07 23:33:38 +0000 |
| commit | 9080920dedd66fde0d89a504de6d4ec272c96537 (patch) | |
| tree | ce3fce9746aab9d0799a439b2eae04b2afaf8ef6 | |
| parent | d867520d0b6a6c7354f1a47302f70a1da83f72c7 (diff) | |
| download | bcm5719-llvm-9080920dedd66fde0d89a504de6d4ec272c96537.tar.gz bcm5719-llvm-9080920dedd66fde0d89a504de6d4ec272c96537.zip | |
[clang-tidy] Fix sed flag again
Darwin's sed does not recognize -r to tell the tool that the
expression is the extended regexp. Seems we don't really need
the flag, as the expression is valid as the standard regexp.
Removing the flag.
llvm-svn: 215171
| -rwxr-xr-x | clang-tools-extra/test/clang-tidy/check_clang_tidy_fix.sh | 2 |
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 8157d243180..7b4acbb0897 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 -r 's#// *[A-Z-]+:.*#//#' ${INPUT_FILE} > ${TEMPORARY_FILE} +sed 's#// *[A-Z-]+:.*#//#' ${INPUT_FILE} > ${TEMPORARY_FILE} clang-tidy ${TEMPORARY_FILE} -fix --checks="-*,${CHECK_TO_RUN}" \ -- --std=c++11 $* > ${TEMPORARY_FILE}.msg 2>&1 |

