Added support for C++20 module based packages in class diagrams (#101)
This commit is contained in:
13
tests/t00071/src/lib1.cppm
Normal file
13
tests/t00071/src/lib1.cppm
Normal file
@@ -0,0 +1,13 @@
|
||||
export module t00071.app.lib1;
|
||||
|
||||
export namespace clanguml::t00071 {
|
||||
class B { };
|
||||
|
||||
template <typename T> class BB {
|
||||
T t;
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
enum class BBB { bbb1, bbb2 };
|
||||
} // namespace detail
|
||||
}
|
||||
5
tests/t00071/src/lib1mod1.cppm
Normal file
5
tests/t00071/src/lib1mod1.cppm
Normal file
@@ -0,0 +1,5 @@
|
||||
export module t00071.app.lib1.mod1;
|
||||
|
||||
export namespace clanguml::t00071 {
|
||||
class D { };
|
||||
}
|
||||
5
tests/t00071/src/lib1mod2.cppm
Normal file
5
tests/t00071/src/lib1mod2.cppm
Normal file
@@ -0,0 +1,5 @@
|
||||
export module t00071.app.lib1.mod2;
|
||||
|
||||
export namespace clanguml::t00071 {
|
||||
class E { };
|
||||
}
|
||||
13
tests/t00071/src/lib2.cppm
Normal file
13
tests/t00071/src/lib2.cppm
Normal file
@@ -0,0 +1,13 @@
|
||||
export module t00071.app.lib2;
|
||||
|
||||
export namespace clanguml::t00071 {
|
||||
class C { };
|
||||
|
||||
template <typename T> class CC {
|
||||
T t;
|
||||
};
|
||||
|
||||
namespace detail {
|
||||
enum class CCC { ccc1, ccc2 };
|
||||
}
|
||||
}
|
||||
11
tests/t00071/src/t00071_mod.cppm
Normal file
11
tests/t00071/src/t00071_mod.cppm
Normal file
@@ -0,0 +1,11 @@
|
||||
export module t00071.app;
|
||||
export import t00071.app.lib1;
|
||||
export import t00071.app.lib2;
|
||||
|
||||
export namespace clanguml::t00071 {
|
||||
class A {
|
||||
int get() { return a; }
|
||||
|
||||
int a;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user