Added PlantUML links generation in package diagrams

This commit is contained in:
Bartek Kryza
2022-03-20 23:27:25 +01:00
parent 109a59533f
commit cc839f88fd
2 changed files with 9 additions and 0 deletions

View File

@@ -75,6 +75,10 @@ void generator::generate(const package &p, std::ostream &ostr) const
if (p.is_deprecated())
ostr << " <<deprecated>>";
if (m_config.generate_links) {
generate_link(ostr, p);
}
if (!p.style().empty())
ostr << " " << p.style();

View File

@@ -99,6 +99,11 @@ void translation_unit_visitor::operator()(const cppast::cpp_entity &file)
auto p = std::make_unique<package>(usn);
package_path = package_path.relative_to(usn);
if (e.location().has_value()) {
p->set_file(e.location().value().file);
p->set_line(e.location().value().line);
}
p->set_name(e.name());
p->set_namespace(package_parent);