[clang-tools-extra] d5e6e0a - Fix build after D74112

Kirill Bobyrev via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 02:42:26 PST 2020


Author: Kirill Bobyrev
Date: 2020-02-06T11:41:17+01:00
New Revision: d5e6e0a58b188627084d4714a4b2862c529870f8

URL: https://github.com/llvm/llvm-project/commit/d5e6e0a58b188627084d4714a4b2862c529870f8
DIFF: https://github.com/llvm/llvm-project/commit/d5e6e0a58b188627084d4714a4b2862c529870f8.diff

LOG: Fix build after D74112

Added: 
    

Modified: 
    clang-tools-extra/clangd/unittests/RenameTests.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/RenameTests.cpp b/clang-tools-extra/clangd/unittests/RenameTests.cpp
index 43e6c778a7ad..2aaf45eb7563 100644
--- a/clang-tools-extra/clangd/unittests/RenameTests.cpp
+++ b/clang-tools-extra/clangd/unittests/RenameTests.cpp
@@ -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) {


        


More information about the cfe-commits mailing list