Fix build after D74112
authorKirill Bobyrev <kbobyrev@google.com>
Thu, 6 Feb 2020 10:41:17 +0000 (11:41 +0100)
committerKirill Bobyrev <kbobyrev@google.com>
Thu, 6 Feb 2020 10:41:17 +0000 (11:41 +0100)
clang-tools-extra/clangd/unittests/RenameTests.cpp

index 43e6c77..2aaf45e 100644 (file)
@@ -440,23 +440,6 @@ TEST(RenameTest, WithinFileRename) {
         template <template<typename> class Z> struct Bar { };
         template <> struct Bar<[[Foo]]> {};
       )cpp",
-
-      {
-          // Implicit references in macro expansions.
-          R"cpp(
-        class [[Fo^o]] {};
-        #define FooFoo Foo
-        #define FOO Foo
-      )cpp",
-          R"cpp(
-        #include "foo.h"
-        void bar() {
-          [[Foo]] x;
-          FOO y;
-          FooFoo z;
-        }
-      )cpp",
-      },
   };
   for (llvm::StringRef T : Tests) {
     SCOPED_TRACE(T);
@@ -909,6 +892,22 @@ TEST(CrossFileRenameTests, WithUpToDateIndex) {
         }
       )cpp",
       },
+      {
+          // Implicit references in macro expansions.
+          R"cpp(
+        class [[Fo^o]] {};
+        #define FooFoo Foo
+        #define FOO Foo
+      )cpp",
+          R"cpp(
+        #include "foo.h"
+        void bar() {
+          [[Foo]] x;
+          FOO y;
+          FooFoo z;
+        }
+      )cpp",
+      },
   };
 
   for (const auto& T : Cases) {