Fixed template namespace filter in class diagrams
This commit is contained in:
@@ -360,8 +360,7 @@ void generator::generate(std::ostream &ostr) const
|
|||||||
|
|
||||||
if (m_config.should_include_entities("classes")) {
|
if (m_config.should_include_entities("classes")) {
|
||||||
for (const auto &c : m_model.classes()) {
|
for (const auto &c : m_model.classes()) {
|
||||||
if (!c.is_template_instantiation() &&
|
if (!m_config.should_include(c.name()))
|
||||||
!m_config.should_include(c.name()))
|
|
||||||
continue;
|
continue;
|
||||||
generate_alias(c, ostr);
|
generate_alias(c, ostr);
|
||||||
ostr << '\n';
|
ostr << '\n';
|
||||||
@@ -375,8 +374,7 @@ void generator::generate(std::ostream &ostr) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &c : m_model.classes()) {
|
for (const auto &c : m_model.classes()) {
|
||||||
if (!c.is_template_instantiation() &&
|
if (!m_config.should_include(c.name()))
|
||||||
!m_config.should_include(c.name()))
|
|
||||||
continue;
|
continue;
|
||||||
generate(c, ostr);
|
generate(c, ostr);
|
||||||
ostr << '\n';
|
ostr << '\n';
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ TEST_CASE("t00014", "[test-case][class]")
|
|||||||
REQUIRE_THAT(puml, IsClassTemplate("A", "T,std::string"));
|
REQUIRE_THAT(puml, IsClassTemplate("A", "T,std::string"));
|
||||||
REQUIRE_THAT(puml, IsClassTemplate("A", "bool,std::string"));
|
REQUIRE_THAT(puml, IsClassTemplate("A", "bool,std::string"));
|
||||||
REQUIRE_THAT(puml, IsClassTemplate("AString", "float"));
|
REQUIRE_THAT(puml, IsClassTemplate("AString", "float"));
|
||||||
|
REQUIRE_THAT(
|
||||||
|
puml, !IsClassTemplate("std::std::function", "void(T...,int),int)"));
|
||||||
|
|
||||||
REQUIRE_THAT(puml, IsInstantiation(_A("A<T,P>"), _A("A<T,std::string>")));
|
REQUIRE_THAT(puml, IsInstantiation(_A("A<T,P>"), _A("A<T,std::string>")));
|
||||||
REQUIRE_THAT(
|
REQUIRE_THAT(
|
||||||
|
|||||||
Reference in New Issue
Block a user