Added support for class diagram filtering based on C++20 modules (#195)

This commit is contained in:
Bartek Kryza
2023-12-17 20:49:41 +01:00
parent f2fe1ca2cf
commit ea6892f754
21 changed files with 310 additions and 21 deletions

View File

@@ -475,6 +475,12 @@ template <> struct convert<filter> {
rhs.namespaces.push_back({ns});
}
if (node["modules"]) {
auto module_list = node["modules"].as<decltype(rhs.modules)>();
for (const auto &ns : module_list)
rhs.modules.push_back({ns});
}
if (node["relationships"])
rhs.relationships =
node["relationships"].as<decltype(rhs.relationships)>();