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);
}
)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) {