summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-08-20 19:21:07 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-08-20 19:21:07 +0000
commit7fc9feac3ebd4982ce968f07a5681b9694114125 (patch)
treee51935806eb0dac69512cb2f7fa296bbee057272 /clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp
parentfc490a99f5f791926c0a6749bb17c65eb34888a5 (diff)
downloadbcm5719-llvm-7fc9feac3ebd4982ce968f07a5681b9694114125.tar.gz
bcm5719-llvm-7fc9feac3ebd4982ce968f07a5681b9694114125.zip
Change the test to use the new python script instead of the more verbose RUN line.
llvm-svn: 245600
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp b/clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp
index e91b95a00c4..31ab2c7181f 100644
--- a/clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp
+++ b/clang-tools-extra/test/clang-tidy/misc-move-constructor-init.cpp
@@ -1,4 +1,4 @@
-// RUN: clang-tidy %s -checks=-*,misc-move-constructor-init -- -std=c++14 | FileCheck %s -implicit-check-not="{{warning|error}}:"
+// RUN: %python %S/check_clang_tidy.py %s misc-move-constructor-init %t
template <class T> struct remove_reference {typedef T type;};
template <class T> struct remove_reference<T&> {typedef T type;};
@@ -23,9 +23,9 @@ struct B {
struct D : B {
D() : B() {}
D(const D &RHS) : B(RHS) {}
- // CHECK: :[[@LINE+3]]:16: warning: move constructor initializes base class by calling a copy constructor [misc-move-constructor-init]
- // CHECK: 19:3: note: copy constructor being called
- // CHECK: 20:3: note: candidate move constructor here
+ // CHECK-MESSAGES: :[[@LINE+3]]:16: warning: move constructor initializes base class by calling a copy constructor [misc-move-constructor-init]
+ // CHECK-MESSAGES: 19:3: note: copy constructor being called
+ // CHECK-MESSAGES: 20:3: note: candidate move constructor here
D(D &&RHS) : B(RHS) {}
};
@@ -68,7 +68,7 @@ struct L : K {
struct M {
B Mem;
- // CHECK: :[[@LINE+1]]:16: warning: move constructor initializes class member by calling a copy constructor [misc-move-constructor-init]
+ // CHECK-MESSAGES: :[[@LINE+1]]:16: warning: move constructor initializes class member by calling a copy constructor [misc-move-constructor-init]
M(M &&RHS) : Mem(RHS.Mem) {}
};
OpenPOWER on IntegriCloud