#!/bin/sh
#
# Run clang-tidy and verify its command line output.

INPUT_FILE=$1
CHECK_TO_RUN=$2

clang-tidy --checks=${CHECK_TO_RUN} --disable-checks="" ${INPUT_FILE} \
    -- --std=c++11 \
  | FileCheck ${INPUT_FILE}

#!/bin/sh
#
# Run clang-tidy and verify its command line output.

INPUT_FILE=$1
CHECK_TO_RUN=$2

clang-tidy --checks=${CHECK_TO_RUN} --disable-checks="" ${INPUT_FILE} \
    -- --std=c++11 -x c++ \
  | FileCheck ${INPUT_FILE}

Allow clang-tidy tests with any file names.
Allow clang-tidy tests with any file names.


git-svn-id: a34e9779ed74578ad5922b3306b3d80a0c825546@207353 91177308-0d34-0410-b5e6-96231b3b80d8
