summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-08-20 17:58:07 +0000
committerAlexander Kornienko <alexfh@google.com>2015-08-20 17:58:07 +0000
commit43556bb7f09e9af8a6ab6b4155f52526fd48992e (patch)
treeca40c20af35cf5f030a3da33fc0a3d4027e177b9 /clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp
parent2335bb7e16bb8533de14e3d3edf72606265d3a08 (diff)
downloadbcm5719-llvm-43556bb7f09e9af8a6ab6b4155f52526fd48992e.tar.gz
bcm5719-llvm-43556bb7f09e9af8a6ab6b4155f52526fd48992e.zip
[clang-tidy] Use a python script instead of a shell script to run clang-tidy tests.
Summary: Add check_clang_tidy.py script that is functionally identical to the check_clang_tidy.py, but should also be functional on windows. I've verified that the script works on linux. Would be nice if folks using Windows could test the patch before I break windows bots ;) Reviewers: chapuni, aaron.ballman Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D12180 llvm-svn: 245583
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp b/clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp
index 7708e09086f..75a20673172 100644
--- a/clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp
+++ b/clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp
@@ -1,8 +1,7 @@
// RUN: echo "static void staticFunctionHeader(int i) {}" > %T/header.h
// RUN: echo "static void staticFunctionHeader(int /*i*/) {}" > %T/header-fixed.h
-// RUN: $(dirname %s)/check_clang_tidy.sh %s misc-unused-parameters %t -header-filter='.*' -- -fno-delayed-template-parsing
+// RUN: %python %S/check_clang_tidy.py %s misc-unused-parameters %t -header-filter='.*' -- -fno-delayed-template-parsing
// RUN: diff %T/header.h %T/header-fixed.h
-// REQUIRES: shell
#include "header.h"
// CHECK-MESSAGES: header.h:1:38: warning
OpenPOWER on IntegriCloud