diff options
| author | Alexander Kornienko <alexfh@google.com> | 2015-08-21 12:41:14 +0000 |
|---|---|---|
| committer | Alexander Kornienko <alexfh@google.com> | 2015-08-21 12:41:14 +0000 |
| commit | 36c8e5649385aea781f9927a1395975f112f506f (patch) | |
| tree | b23bfe5ad7b60ff4260260997c3e7f9814c30ab6 | |
| parent | 21f774e8c5ba2408f0720f94caa1c942a7f9dedf (diff) | |
| download | bcm5719-llvm-36c8e5649385aea781f9927a1395975f112f506f.tar.gz bcm5719-llvm-36c8e5649385aea781f9927a1395975f112f506f.zip | |
[clang-tidy] Remove check_clang_tidy.sh that has been replaced with check_clang_tidy.py.
llvm-svn: 245699
| -rwxr-xr-x | clang-tools-extra/test/clang-tidy/check_clang_tidy.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/clang-tools-extra/test/clang-tidy/check_clang_tidy.sh b/clang-tools-extra/test/clang-tidy/check_clang_tidy.sh deleted file mode 100755 index 817e3a2c64f..00000000000 --- a/clang-tools-extra/test/clang-tidy/check_clang_tidy.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# -# Run clang-tidy in fix mode and verify fixes, messages or both. -# Usage: -# check_clang_tidy.sh <source-file> <check-name> <temp-file> \ -# [optional clang-tidy arguments] -# -# Example: -# // RUN: $(dirname %s)/check_clang_tidy.sh %s llvm-include-order %t -- -isystem $(dirname %s)/Inputs/Headers -# // REQUIRES: shell - -INPUT_FILE=$1 -CHECK_TO_RUN=$2 -TEMPORARY_FILE=$3.cpp -# Feed the rest arguments to clang-tidy. -shift 3 -if [ "$#" -eq 0 ] ; then - # Default to -- --std=c++11 - set - -- --std=c++11 -fi - -set -o errexit - -if ! grep -q 'CHECK-FIXES\|CHECK-MESSAGES' "${INPUT_FILE}"; then - echo "FAIL: Neither CHECK-FIXES nor CHECK-MESSAGES found in the input" - exit 1 -fi - -# 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#// *CHECK-[A-Z-]*:.*#//#' "${INPUT_FILE}" > "${TEMPORARY_FILE}" -cp "${TEMPORARY_FILE}" "${TEMPORARY_FILE}.orig" - -clang-tidy "${TEMPORARY_FILE}" -fix --checks="-*,${CHECK_TO_RUN}" "$@" \ - > "${TEMPORARY_FILE}.msg" 2>&1 - -echo "------------------------ clang-tidy output ------------------------" -cat "${TEMPORARY_FILE}.msg" -echo "-------------------------------------------------------------------" - -echo "------------------------------ Fixes ------------------------------" -diff -u "${TEMPORARY_FILE}.orig" "${TEMPORARY_FILE}" || true -echo "-------------------------------------------------------------------" - -if grep -q 'CHECK-FIXES' "${INPUT_FILE}"; then - FileCheck -input-file="${TEMPORARY_FILE}" "${INPUT_FILE}" \ - -check-prefix=CHECK-FIXES -strict-whitespace -fi - -if grep -q 'CHECK-MESSAGES' "${INPUT_FILE}"; then - FileCheck -input-file="${TEMPORARY_FILE}.msg" "${INPUT_FILE}" \ - -check-prefix=CHECK-MESSAGES -implicit-check-not='{{warning|error}}:' -fi |

