Added thread pool to parallelize diagram generation

This commit is contained in:
Bartek Kryza
2022-03-18 22:55:15 +01:00
parent 82737df05c
commit c49969495f
14 changed files with 143 additions and 161 deletions

View File

@@ -179,8 +179,8 @@ void generator::generate(
}
}
catch (error::uml_alias_missing &e) {
LOG_ERROR("=== Skipping {} relation from {} to {} due "
"to: {}",
LOG_DBG("=== Skipping {} relation from {} to {} due "
"to: {}",
plantuml_common::to_plantuml(r.type(), r.style()),
c.full_name(), destination, e.what());
}
@@ -215,8 +215,8 @@ void generator::generate(
all_relations_str << relstr.str();
}
catch (error::uml_alias_missing &e) {
LOG_ERROR("=== Skipping inheritance relation from {} to {} due "
"to: {}",
LOG_DBG("=== Skipping inheritance relation from {} to {} due "
"to: {}",
b.name(), c.name(), e.what());
}
}
@@ -271,8 +271,8 @@ void generator::generate(
relationships_ostr << relstr.str();
}
catch (error::uml_alias_missing &ex) {
LOG_ERROR("Skipping {} relation from {} to {} due "
"to: {}",
LOG_DBG("Skipping {} relation from {} to {} due "
"to: {}",
clanguml::common::generators::plantuml::to_plantuml(
r.type(), r.style()),
e.full_name(), destination, ex.what());

View File

@@ -200,7 +200,7 @@ void translation_unit_visitor::process_type_alias_template(
{
if (at.type_alias().underlying_type().kind() ==
cppast::cpp_type_kind::unexposed_t) {
LOG_WARN("Template alias has unexposed underlying type: {}",
LOG_DBG("Template alias has unexposed underlying type: {}",
static_cast<const cppast::cpp_unexposed_type &>(
at.type_alias().underlying_type())
.name());
@@ -407,8 +407,8 @@ bool translation_unit_visitor::process_template_parameters(
process_scope_template_parameters(c, scope);
}
else {
LOG_WARN("Class {} is templated but it's scope {} is not - "
"probably this is a specialization",
LOG_DBG("Class {} is templated but it's scope {} is not - "
"probably this is a specialization",
cls.name(), scope.name());
// Add specialization arguments
@@ -541,7 +541,7 @@ void translation_unit_visitor::
{relationship_t::kInstantiation, base_template_full_name});
}
else {
LOG_WARN(
LOG_DBG(
"No user data for base template {}", primary_template_ref.name());
}
}
@@ -1321,8 +1321,7 @@ bool translation_unit_visitor::find_relationships_in_template_instantiation(
found = find_relationships(args[0u].type().value(), relationships,
relationship_t::kAggregation);
else
LOG_WARN(
"Failed to process template argument of std::vector at: {}",
LOG_DBG("Failed to process template argument of std::vector at: {}",
fn);
}
else if (ctx.config().should_include(ns, name)) {
@@ -1470,7 +1469,7 @@ std::unique_ptr<class_> translation_unit_visitor::build_template_instantiation(
t, tinst, template_base_params, parent, full_template_name);
}
else {
LOG_WARN("Template instantiation {} has no primary template",
LOG_DBG("Template instantiation {} has no primary template",
cppast::to_string(t));
full_template_name = cppast::to_string(t);
@@ -1769,7 +1768,7 @@ void translation_unit_visitor::build_template_instantiation_primary_template(
LOG_DBG("Primary template ref set to: {}", tinst.base_template());
}
else
LOG_WARN(
LOG_DBG(
"No user data for base template {}", primary_template_ref.name());
}