Fixed t00033 after refactoring class diagram visitor

This commit is contained in:
Bartek Kryza
2022-02-23 21:25:28 +01:00
parent 2554008f85
commit 1c619a9695
3 changed files with 6 additions and 5 deletions

View File

@@ -78,7 +78,6 @@ void diagram::add_class(std::unique_ptr<class_> &&c)
throw std::runtime_error("Name cannot contain *: " + c->name());
if (!has_class(*c)) {
LOG_DBG("### ADDED CLASS WITH ADDRESS: {}", (void *)c.get());
classes_.emplace_back(*c);
auto ns = c->get_relative_namespace();
auto name = c->name();

View File

@@ -1592,9 +1592,11 @@ void translation_unit_visitor::
ctx.diagram().add_class(std::move(nested_tinst));
}
if (ctx.config().should_include(tinst_ns, tinst_name) &&
ctx.config().should_include(
cx::util::split_ns(tinst_dependency.destination()))) {
if (ctx.config().should_include(tinst_ns, tinst_name)
// TODO: check why this breaks t00033:
// && ctx.config().should_include(
// cx::util::split_ns(tinst_dependency.destination()))
) {
LOG_DBG("Creating nested template dependency to template "
"instantiation {}, {} -> {}",
fn, tinst.full_name(), tinst_dependency.destination());

View File

@@ -164,7 +164,7 @@ bool diagram::should_include(const std::string &name_) const
return true;
}
spdlog::debug("Skipping from diagram: {}", name);
LOG_DBG("Skipping from diagram: {}", name);
return false;
}