Before this patch, clang would emit a (module-)forward declaration for template instantiations that are not anchored by an explicit template instantiation, but still are guaranteed to be available in an imported module. Unfortunately detecting the owning module doesn't reliably work when local submodule visibility is enabled and the template is inside a cross-module namespace. This make clang debuggable again with -gmodules and LSV enabled. rdar://problem/41552377 llvm-svn: 345109
15 lines
154 B
C++
15 lines
154 B
C++
#ifndef B_H
|
|
#define B_H
|
|
#include <A/ADT.h>
|
|
#include <C/C.h>
|
|
|
|
namespace llvm {
|
|
struct S {
|
|
unsigned a, b, c, d;
|
|
};
|
|
class C {
|
|
Optional<S> S;
|
|
};
|
|
}
|
|
#endif
|