Fix build after D74112

This commit is contained in:
Kirill Bobyrev 2020-02-06 11:41:17 +01:00
parent 10540e480d
commit d5e6e0a58b
No known key found for this signature in database
GPG Key ID: 2307C055C8384FA0

View 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) {