29 , together_group_stack_{
false}
34 const package &p, std::ostream &ostr)
const
39 if (
model().should_include(relationship_t::kDependency)) {
41 std::stringstream relstr;
43 auto destination_package =
model().get(r.destination());
44 if (!destination_package)
47 auto destination_alias =
model().to_alias(r.destination());
49 if (!destination_alias.empty()) {
51 relstr << p.
alias() <<
" ..> " << destination_alias;
53 if (
config().generate_links) {
62 LOG_DBG(
"=== Skipping dependency relation from {} to {} due "
64 p.
full_name(
false), r.destination(), e.what());
70 for (
const auto &subpackage : p) {
72 dynamic_cast<const package &
>(*subpackage), ostr);
84 const auto &uns =
config().using_namespace();
88 if (!uns.starts_with({p.full_name(false)})) {
91 ostr <<
"package [" << display_name_adapter(p).with_packages().name()
93 ostr <<
"as " << p.
alias();
96 ostr <<
" <<deprecated>>";
98 if (
config().generate_links) {
104 ostr <<
" {" <<
'\n';
107 for (
const auto &subpackage : p) {
108 auto &pkg =
dynamic_cast<package &
>(*subpackage);
109 auto together_group =
config().get_together_group(pkg.full_name(
false));
110 if (together_group) {
120 if (!uns.starts_with({p.full_name(false)})) {
131 for (
const auto &[group_name, group_elements] :
133 ostr <<
"together {\n";
135 for (
auto *pkg : group_elements) {
145 for (
const auto &p :
model()) {
146 auto &pkg =
dynamic_cast<package &
>(*p);
147 auto together_group =
config().get_together_group(pkg.full_name(
false));
148 if (together_group) {
159 for (
const auto &p :
model()) {