Fixed empty entity name errors
This commit is contained in:
@@ -1199,6 +1199,9 @@ void translation_unit_visitor::process_function_parameter(
|
||||
relationship_t::kDependency);
|
||||
|
||||
for (const auto &[type, relationship_type] : relationships) {
|
||||
if (type.empty())
|
||||
continue;
|
||||
|
||||
auto [type_ns, type_name] = cx::util::split_ns(type);
|
||||
if (ctx.diagram().should_include(type_ns, type_name) &&
|
||||
(relationship_type != relationship_t::kNone) &&
|
||||
|
||||
@@ -582,6 +582,9 @@ void diagram_filter::init_filters(const config::diagram &c)
|
||||
template <>
|
||||
bool diagram_filter::should_include<std::string>(const std::string &name) const
|
||||
{
|
||||
if (name.empty())
|
||||
return false;
|
||||
|
||||
auto [ns, n] = cx::util::split_ns(name);
|
||||
|
||||
return should_include(ns, n);
|
||||
|
||||
Reference in New Issue
Block a user