Files
swift-mirror/test/Interop/Cxx/namespace/Inputs/submodule-b.h
Egor Zhdan cfc9483f1a C++ Interop: import namespaces redecls as separate extensions
Previously a namespace declaration was imported along with all of its redeclarations, and their members were added to a single Swift extension. This was problematic when a single namespace is declared in multiple modules – the extension belonged to only one of them.
For an example of this, try printing a module interface for `std.string`/`std.iosfwd` – it will be empty, even though the declarations from those modules are actually imported into Swift correctly.

This change makes sure that when we're importing different redeclarations of the same namespace, we're adding them as separate extensions to appropriate modules.
2021-07-23 23:38:46 +03:00

17 lines
287 B
C++

#ifndef TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H
#define TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H
namespace NS1 {
namespace NS2 {
struct BasicDeepB {};
} // namespace NS2
struct BasicB {};
} // namespace NS1
#endif // TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H