summaryrefslogtreecommitdiff
path: root/clang-tools-extra/test/clang-move
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2016-10-14 10:07:58 +0000
committerHaojian Wu <hokein@google.com>2016-10-14 10:07:58 +0000
commit1ccda203126a2e96d7adff523f505cb46f4f0fb9 (patch)
tree879b499476a6a3510df6e7b2b70a4f9dfa97e69d /clang-tools-extra/test/clang-move
parent3e3c3f0bde4dff238faabcbe20e50176b2261353 (diff)
[clang-move] Matching static class member more correctly.
Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25598
Diffstat (limited to 'clang-tools-extra/test/clang-move')
-rw-r--r--clang-tools-extra/test/clang-move/Inputs/test.cpp3
-rw-r--r--clang-tools-extra/test/clang-move/Inputs/test.h1
-rw-r--r--clang-tools-extra/test/clang-move/move-class.cpp2
3 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-move/Inputs/test.cpp b/clang-tools-extra/test/clang-move/Inputs/test.cpp
index 65997abbdb7..fa777f01b95 100644
--- a/clang-tools-extra/test/clang-move/Inputs/test.cpp
+++ b/clang-tools-extra/test/clang-move/Inputs/test.cpp
@@ -5,4 +5,7 @@ namespace a {
int Foo::f() {
return 0;
}
+int Foo::f2(int a, int b) {
+ return a + b;
+}
} // namespace a
diff --git a/clang-tools-extra/test/clang-move/Inputs/test.h b/clang-tools-extra/test/clang-move/Inputs/test.h
index 8ff3316f021..9d0073a0d15 100644
--- a/clang-tools-extra/test/clang-move/Inputs/test.h
+++ b/clang-tools-extra/test/clang-move/Inputs/test.h
@@ -2,5 +2,6 @@ namespace a {
class Foo {
public:
int f();
+ int f2(int a, int b);
};
} // namespace a
diff --git a/clang-tools-extra/test/clang-move/move-class.cpp b/clang-tools-extra/test/clang-move/move-class.cpp
index 56aad1b92dc..cfe0d0fbd37 100644
--- a/clang-tools-extra/test/clang-move/move-class.cpp
+++ b/clang-tools-extra/test/clang-move/move-class.cpp
@@ -25,6 +25,7 @@
// CHECK-NEW-TEST-H: class Foo {
// CHECK-NEW-TEST-H: public:
// CHECK-NEW-TEST-H: int f();
+// CHECK-NEW-TEST-H: int f2(int a, int b);
// CHECK-NEW-TEST-H: };
// CHECK-NEW-TEST-H: } // namespace a
//
@@ -32,6 +33,7 @@
// CHECK-NEW-TEST-CPP: #include "test2.h"
// CHECK-NEW-TEST-CPP: namespace a {
// CHECK-NEW-TEST-CPP: int Foo::f() { return 0; }
+// CHECK-NEW-TEST-CPP: int Foo::f2(int a, int b) { return a + b; }
// CHECK-NEW-TEST-CPP: } // namespace a
//
// CHECK-OLD-TEST-CPP: #include "test.h"