Skip to content

Commit b91bee0

Browse files
committed
Add %check_clang_tidy and %clang_tidy_diff.
With this, site specific lit configs can inject parameters into the test scripts if they need site specific parameters. Next up: enable check_clang_tidy to take a resource dir to enable non-standard locations for builtin includes. llvm-svn: 251010
1 parent fbfa7a1 commit b91bee0

File tree

82 files changed

+91
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+91
-82
lines changed

clang-tools-extra/test/clang-tidy/cert-setlongjmp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cert-err52-cpp %t -- -std=c++11
1+
// RUN: %check_clang_tidy %s cert-err52-cpp %t -- -std=c++11
22

33
typedef void *jmp_buf;
44
extern int __setjmpimpl(jmp_buf);

clang-tools-extra/test/clang-tidy/cert-variadic-function-def.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cert-dcl50-cpp %t
1+
// RUN: %check_clang_tidy %s cert-dcl50-cpp %t
22

33
// Variadic function definitions are diagnosed.
44
void f1(int, ...) {}

clang-tools-extra/test/clang-tidy/check_clang_tidy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[optional clang-tidy arguments]
2121
2222
Example:
23-
// RUN: %python %S/check_clang_tidy.py %s llvm-include-order %t -- -isystem $(dirname %s)/Inputs/Headers
23+
// RUN: %check_clang_tidy %s llvm-include-order %t -- -isystem $(dirname %s)/Inputs/Headers
2424
"""
2525

2626
import re

clang-tools-extra/test/clang-tidy/clang-tidy-diff.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: sed 's/placeholder_for_f/f/' %s > %t.cpp
22
// RUN: clang-tidy -checks=-*,modernize-use-override %t.cpp -- -std=c++11 | FileCheck -check-prefix=CHECK-SANITY %s
3-
// RUN: not diff -U0 %s %t.cpp | %python %S/../../clang-tidy/tool/clang-tidy-diff.py -checks=-*,modernize-use-override -- -std=c++11 2>&1 | FileCheck %s
3+
// RUN: not diff -U0 %s %t.cpp | %clang_tidy_diff -checks=-*,modernize-use-override -- -std=c++11 2>&1 | FileCheck %s
44
struct A {
55
virtual void f() {}
66
virtual void g() {}

clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-bounds-pointer-arithmetic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cppcoreguidelines-pro-bounds-pointer-arithmetic %t
1+
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-bounds-pointer-arithmetic %t
22

33
enum E {
44
ENUM_LITERAL = 1

clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-const-cast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cppcoreguidelines-pro-type-const-cast %t
1+
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-const-cast %t
22

33
const int *i;
44
int *j;

clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-reinterpret-cast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cppcoreguidelines-pro-type-reinterpret-cast %t
1+
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-reinterpret-cast %t
22

33
int i = 0;
44
void *j;

clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-static-cast-downcast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cppcoreguidelines-pro-type-static-cast-downcast %t
1+
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-static-cast-downcast %t
22

33
class Base {
44
};

clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-union-access.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cppcoreguidelines-pro-type-union-access %t
1+
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-union-access %t
22

33
union U {
44
bool union_member1;

clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-vararg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s cppcoreguidelines-pro-type-vararg %t
1+
// RUN: %check_clang_tidy %s cppcoreguidelines-pro-type-vararg %t
22

33
void f(int i);
44
void f_vararg(int i, ...);

clang-tools-extra/test/clang-tidy/google-build-explicit-make-pair.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-build-explicit-make-pair %t
1+
// RUN: %check_clang_tidy %s google-build-explicit-make-pair %t
22

33
namespace std {
44
template <class T1, class T2>

clang-tools-extra/test/clang-tidy/google-explicit-constructor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-explicit-constructor %t
1+
// RUN: %check_clang_tidy %s google-explicit-constructor %t
22

33
namespace std {
44
typedef decltype(sizeof(int)) size_t;

clang-tools-extra/test/clang-tidy/google-overloaded-unary-and.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-runtime-operator %t
1+
// RUN: %check_clang_tidy %s google-runtime-operator %t
22

33
struct Foo {
44
void *operator&();

clang-tools-extra/test/clang-tidy/google-readability-casting.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-readability-casting %t -- -x c
1+
// RUN: %check_clang_tidy %s google-readability-casting %t -- -x c
22
// The testing script always adds .cpp extension to the input file name, so we
33
// need to run clang-tidy directly in order to verify handling of .c files:
44
// RUN: clang-tidy --checks=-*,google-readability-casting %s -- -x c++ | FileCheck %s -check-prefix=CHECK-MESSAGES -implicit-check-not='{{warning|error}}:'

clang-tools-extra/test/clang-tidy/google-readability-casting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-readability-casting %t
1+
// RUN: %check_clang_tidy %s google-readability-casting %t
22

33
bool g() { return false; }
44

clang-tools-extra/test/clang-tidy/google-readability-namespace-comments.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-readability-namespace-comments %t
1+
// RUN: %check_clang_tidy %s google-readability-namespace-comments %t
22

33
namespace n1 {
44
namespace n2 {

clang-tools-extra/test/clang-tidy/google-readability-todo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-readability-todo %t -config="{User: 'some user'}" --
1+
// RUN: %check_clang_tidy %s google-readability-todo %t -config="{User: 'some user'}" --
22

33
// TODOfix this1
44
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: missing username/bug in TODO

clang-tools-extra/test/clang-tidy/google-runtime-int-std.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-runtime-int %t \
1+
// RUN: %check_clang_tidy %s google-runtime-int %t \
22
// RUN: -config='{CheckOptions: [ \
33
// RUN: {key: google-runtime-int.UnsignedTypePrefix, value: "std::uint"}, \
44
// RUN: {key: google-runtime-int.SignedTypePrefix, value: "std::int"}, \

clang-tools-extra/test/clang-tidy/google-runtime-int.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-runtime-int %t
1+
// RUN: %check_clang_tidy %s google-runtime-int %t
22

33
long a();
44
// CHECK-MESSAGES: [[@LINE-1]]:1: warning: consider replacing 'long' with 'int{{..}}'

clang-tools-extra/test/clang-tidy/google-runtime-member-string-references.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-runtime-member-string-references %t
1+
// RUN: %check_clang_tidy %s google-runtime-member-string-references %t
22

33
namespace std {
44
template<typename T>

clang-tools-extra/test/clang-tidy/google-runtime-memset-zero-length.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s google-runtime-memset %t
1+
// RUN: %check_clang_tidy %s google-runtime-memset %t
22

33
void *memset(void *, int, __SIZE_TYPE__);
44

clang-tools-extra/test/clang-tidy/llvm-include-order.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s llvm-include-order %t -- -isystem %S/Inputs/Headers
1+
// RUN: %check_clang_tidy %s llvm-include-order %t -- -isystem %S/Inputs/Headers
22

33
// CHECK-MESSAGES: [[@LINE+2]]:1: warning: #includes are not sorted properly
44
#include "j.h"

clang-tools-extra/test/clang-tidy/llvm-twine-local.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s llvm-twine-local %t
1+
// RUN: %check_clang_tidy %s llvm-twine-local %t
22

33
namespace llvm {
44
class Twine {

clang-tools-extra/test/clang-tidy/misc-argument-comment.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-argument-comment %t
1+
// RUN: %check_clang_tidy %s misc-argument-comment %t
22

33
// FIXME: clang-tidy should provide a -verify mode to make writing these checks
44
// easier and more accurate.

clang-tools-extra/test/clang-tidy/misc-assert-side-effect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-assert-side-effect %t -config="{CheckOptions: [{key: misc-assert-side-effect.CheckFunctionCalls, value: 1}, {key: misc-assert-side-effect.AssertMacros, value: 'assert,assert2,my_assert,convoluted_assert'}]}" -- -fexceptions
1+
// RUN: %check_clang_tidy %s misc-assert-side-effect %t -config="{CheckOptions: [{key: misc-assert-side-effect.CheckFunctionCalls, value: 1}, {key: misc-assert-side-effect.AssertMacros, value: 'assert,assert2,my_assert,convoluted_assert'}]}" -- -fexceptions
22

33
//===--- assert definition block ------------------------------------------===//
44
int abort() { return 0; }

clang-tools-extra/test/clang-tidy/misc-assign-operator-signature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-assign-operator-signature %t
1+
// RUN: %check_clang_tidy %s misc-assign-operator-signature %t
22

33
struct Good {
44
Good& operator=(const Good&);

clang-tools-extra/test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-bool-pointer-implicit-conversion %t
1+
// RUN: %check_clang_tidy %s misc-bool-pointer-implicit-conversion %t
22

33
bool *SomeFunction();
44
void SomeOtherFunction(bool*);

clang-tools-extra/test/clang-tidy/misc-inaccurate-erase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-inaccurate-erase %t
1+
// RUN: %check_clang_tidy %s misc-inaccurate-erase %t
22

33
namespace std {
44
template <typename T> struct vec_iterator {

clang-tools-extra/test/clang-tidy/misc-inefficient-algorithm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-inefficient-algorithm %t
1+
// RUN: %check_clang_tidy %s misc-inefficient-algorithm %t
22

33
namespace std {
44
template <typename T> struct less {

clang-tools-extra/test/clang-tidy/misc-macro-parentheses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-macro-parentheses %t
1+
// RUN: %check_clang_tidy %s misc-macro-parentheses %t
22

33
#define BAD1 -1
44
// CHECK-MESSAGES: :[[@LINE-1]]:27: warning: macro replacement list should be enclosed in parentheses [misc-macro-parentheses]

clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-move-constructor-init %t -- -std=c++11 -isystem %S/Inputs/Headers
1+
// RUN: %check_clang_tidy %s misc-move-constructor-init %t -- -std=c++11 -isystem %S/Inputs/Headers
22

33
#include <s.h>
44

clang-tools-extra/test/clang-tidy/misc-new-delete-overloads-sized-dealloc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-new-delete-overloads %t -- -std=c++14 -fsized-deallocation
1+
// RUN: %check_clang_tidy %s misc-new-delete-overloads %t -- -std=c++14 -fsized-deallocation
22

33
typedef decltype(sizeof(int)) size_t;
44

clang-tools-extra/test/clang-tidy/misc-new-delete-overloads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-new-delete-overloads %t -- -std=c++14
1+
// RUN: %check_clang_tidy %s misc-new-delete-overloads %t -- -std=c++14
22

33
typedef decltype(sizeof(int)) size_t;
44

clang-tools-extra/test/clang-tidy/misc-noexcept-move-constructor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-noexcept-move-constructor %t
1+
// RUN: %check_clang_tidy %s misc-noexcept-move-constructor %t
22

33
class A {
44
A(A &&);

clang-tools-extra/test/clang-tidy/misc-non-copyable-objects.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-non-copyable-objects %t
1+
// RUN: %check_clang_tidy %s misc-non-copyable-objects %t
22

33
typedef struct FILE {} FILE;
44
typedef struct pthread_cond_t {} pthread_cond_t;

clang-tools-extra/test/clang-tidy/misc-non-copyable-objects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-non-copyable-objects %t
1+
// RUN: %check_clang_tidy %s misc-non-copyable-objects %t
22

33
namespace std {
44
typedef struct FILE {} FILE;

clang-tools-extra/test/clang-tidy/misc-repeated-side-effects-in-macro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-macro-repeated-side-effects %t
1+
// RUN: %check_clang_tidy %s misc-macro-repeated-side-effects %t
22

33
#define badA(x,y) ((x)+((x)+(y))+(y))
44
void bad(int ret, int a, int b) {

clang-tools-extra/test/clang-tidy/misc-sizeof-container.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-sizeof-container %t -- -std=c++11 -target x86_64-unknown-unknown
1+
// RUN: %check_clang_tidy %s misc-sizeof-container %t -- -std=c++11 -target x86_64-unknown-unknown
22

33
namespace std {
44

clang-tools-extra/test/clang-tidy/misc-static-assert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-static-assert %t -- -std=c11
1+
// RUN: %check_clang_tidy %s misc-static-assert %t -- -std=c11
22
// RUN: clang-tidy %s -checks=-*,misc-static-assert -- -std=c99 | count 0
33

44
void abort() {}

clang-tools-extra/test/clang-tidy/misc-static-assert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-static-assert %t
1+
// RUN: %check_clang_tidy %s misc-static-assert %t
22

33
void abort() {}
44
#ifdef NDEBUG

clang-tools-extra/test/clang-tidy/misc-swapped-arguments.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-swapped-arguments %t
1+
// RUN: %check_clang_tidy %s misc-swapped-arguments %t
22

33
void F(int, double);
44

clang-tools-extra/test/clang-tidy/misc-throw-by-value-catch-by-reference.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-throw-by-value-catch-by-reference %t -- -std=c++11 -fcxx-exceptions
1+
// RUN: %check_clang_tidy %s misc-throw-by-value-catch-by-reference %t -- -std=c++11 -fcxx-exceptions
22

33

44
class logic_error {

clang-tools-extra/test/clang-tidy/misc-undelegated-constructor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-undelegated-constructor %t
1+
// RUN: %check_clang_tidy %s misc-undelegated-constructor %t
22

33
struct Ctor;
44
Ctor foo();

clang-tools-extra/test/clang-tidy/misc-uniqueptr-reset-release.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-uniqueptr-reset-release %t
1+
// RUN: %check_clang_tidy %s misc-uniqueptr-reset-release %t
22

33
namespace std {
44

clang-tools-extra/test/clang-tidy/misc-unused-alias-decls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-unused-alias-decls %t
1+
// RUN: %check_clang_tidy %s misc-unused-alias-decls %t
22

33
namespace my_namespace {
44
class C {};

clang-tools-extra/test/clang-tidy/misc-unused-parameters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-unused-parameters %t -- -xc
1+
// RUN: %check_clang_tidy %s misc-unused-parameters %t -- -xc
22

33
// Basic removal
44
// =============

clang-tools-extra/test/clang-tidy/misc-unused-parameters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: echo "static void staticFunctionHeader(int i) {}" > %T/header.h
22
// RUN: echo "static void staticFunctionHeader(int /*i*/) {}" > %T/header-fixed.h
3-
// RUN: %python %S/check_clang_tidy.py %s misc-unused-parameters %t -header-filter='.*' -- -std=c++11 -fno-delayed-template-parsing
3+
// RUN: %check_clang_tidy %s misc-unused-parameters %t -header-filter='.*' -- -std=c++11 -fno-delayed-template-parsing
44
// RUN: diff %T/header.h %T/header-fixed.h
55

66
#include "header.h"

clang-tools-extra/test/clang-tidy/misc-unused-raii.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s misc-unused-raii %t
1+
// RUN: %check_clang_tidy %s misc-unused-raii %t
22

33
struct Foo {
44
Foo();

clang-tools-extra/test/clang-tidy/modernize-loop-convert-basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-loop-convert %t -- -std=c++11 -I %S/Inputs/modernize-loop-convert
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t -- -std=c++11 -I %S/Inputs/modernize-loop-convert
22

33
#include "structures.h"
44

clang-tools-extra/test/clang-tidy/modernize-loop-convert-camelback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-loop-convert %t \
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t \
22
// RUN: -config="{CheckOptions: [{key: modernize-loop-convert.NamingStyle, value: 'camelBack'}]}" \
33
// RUN: -- -std=c++11 -I %S/Inputs/modernize-loop-convert
44

clang-tools-extra/test/clang-tidy/modernize-loop-convert-extra.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-loop-convert %t -- -std=c++11 -I %S/Inputs/modernize-loop-convert
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t -- -std=c++11 -I %S/Inputs/modernize-loop-convert
22

33
#include "structures.h"
44

clang-tools-extra/test/clang-tidy/modernize-loop-convert-lowercase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-loop-convert %t \
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t \
22
// RUN: -config="{CheckOptions: [{key: modernize-loop-convert.NamingStyle, value: 'lower_case'}]}" \
33
// RUN: -- -std=c++11 -I %S/Inputs/modernize-loop-convert
44

clang-tools-extra/test/clang-tidy/modernize-loop-convert-negative.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-loop-convert %t -- -std=c++11 -I %S/Inputs/modernize-loop-convert
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t -- -std=c++11 -I %S/Inputs/modernize-loop-convert
22

33
#include "structures.h"
44

clang-tools-extra/test/clang-tidy/modernize-loop-convert-uppercase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-loop-convert %t \
1+
// RUN: %check_clang_tidy %s modernize-loop-convert %t \
22
// RUN: -config="{CheckOptions: [{key: modernize-loop-convert.NamingStyle, value: 'UPPER_CASE'}]}" \
33
// RUN: -- -std=c++11 -I %S/Inputs/modernize-loop-convert
44

clang-tools-extra/test/clang-tidy/modernize-make-unique.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-make-unique %t
1+
// RUN: %check_clang_tidy %s modernize-make-unique %t
22

33
namespace std {
44

clang-tools-extra/test/clang-tidy/modernize-pass-by-value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-pass-by-value %t -- -std=c++11 -fno-delayed-template-parsing
1+
// RUN: %check_clang_tidy %s modernize-pass-by-value %t -- -std=c++11 -fno-delayed-template-parsing
22

33
// CHECK-FIXES: #include <utility>
44

clang-tools-extra/test/clang-tidy/modernize-replace-auto-ptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-replace-auto-ptr %t -- \
1+
// RUN: %check_clang_tidy %s modernize-replace-auto-ptr %t -- \
22
// RUN: -std=c++11 -I %S/Inputs/modernize-replace-auto-ptr
33

44
// CHECK-FIXES: #include <utility>

clang-tools-extra/test/clang-tidy/modernize-shrink-to-fit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-shrink-to-fit %t
1+
// RUN: %check_clang_tidy %s modernize-shrink-to-fit %t
22

33
namespace std {
44
template <typename T> struct vector { void swap(vector &other); };

clang-tools-extra/test/clang-tidy/modernize-use-auto-iterator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-auto %t -- \
1+
// RUN: %check_clang_tidy %s modernize-use-auto %t -- \
22
// RUN: -std=c++11 -I %S/Inputs/modernize-use-auto
33

44
#include "containers.h"

clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-auto %t
1+
// RUN: %check_clang_tidy %s modernize-use-auto %t
22

33
class MyType {};
44

clang-tools-extra/test/clang-tidy/modernize-use-default.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-default %t -- -std=c++11 -fno-delayed-template-parsing
1+
// RUN: %check_clang_tidy %s modernize-use-default %t -- -std=c++11 -fno-delayed-template-parsing
22

33
class A {
44
public:

clang-tools-extra/test/clang-tidy/modernize-use-nullptr-basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-nullptr %t -- \
1+
// RUN: %check_clang_tidy %s modernize-use-nullptr %t -- \
22
// RUN: -std=c++98 -Wno-non-literal-null-conversion
33
//
44
// Some parts of the test (e.g. assignment of `const int` to `int *`) fail in

clang-tools-extra/test/clang-tidy/modernize-use-nullptr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-nullptr %t \
1+
// RUN: %check_clang_tidy %s modernize-use-nullptr %t \
22
// RUN: -config="{CheckOptions: [{key: modernize-use-nullptr.NullMacros, value: 'MY_NULL,NULL'}]}" \
33
// RUN: -- -std=c++11
44

clang-tools-extra/test/clang-tidy/modernize-use-override-cxx98.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-override %t -- -std=c++98
1+
// RUN: %check_clang_tidy %s modernize-use-override %t -- -std=c++98
22

33
struct Base {
44
virtual ~Base() {}

clang-tools-extra/test/clang-tidy/modernize-use-override.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %python %S/check_clang_tidy.py %s modernize-use-override %t
1+
// RUN: %check_clang_tidy %s modernize-use-override %t
22

33
#define ABSTRACT = 0
44

0 commit comments

Comments
 (0)