From e77bcc7371c1d3054a99ee45eeac45ca335dd2d9 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 13 Oct 2016 10:31:00 +0000 Subject: [clang-move] Better support enclosing class. Summary: * When moving an outermost enclosing class, all its nested classes should also be moved together. * Add a test for not moving nested class. Reviewers: ioeric Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25369 llvm-svn: 284111 --- clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp') diff --git a/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp b/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp index 302475baf0f..3e62ea836c1 100644 --- a/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp +++ b/clang-tools-extra/test/clang-move/Inputs/multiple_class_test.cpp @@ -21,6 +21,14 @@ int Move4::f() { return 0; } +int EnclosingMove5::a = 1; + +int EnclosingMove5::Nested::f() { + return 0; +} + +int EnclosingMove5::Nested::b = 1; + int NoMove::f() { return 0; } -- cgit v1.2.3