Fixed class visitor continuation after inner class

This commit is contained in:
Bartek Kryza
2021-02-26 23:22:16 +01:00
parent 474f38c349
commit c1f4ecefbc
5 changed files with 13 additions and 4 deletions

View File

@@ -6,9 +6,9 @@ diagrams:
glob:
- ../../tests/t00004/t00004.cc
using_namespace:
- clanguml::t00004::A::AA
- clanguml::t00004::A
- clanguml::t00004
- clanguml::t00004::A
- clanguml::t00004::A::AA
include:
namespaces:
- clanguml::t00004

View File

@@ -3,6 +3,8 @@ namespace t00004 {
class A {
public:
void foo() const {}
class AA {
public:
enum class Lights { Green, Yellow, Red };
@@ -11,7 +13,7 @@ public:
};
};
void foo() const {}
void foo2() const {}
};
}
}

View File

@@ -258,6 +258,8 @@ TEST_CASE("Test t00004", "[unit-test]")
REQUIRE_THAT(puml, Contains("A +-- AA"));
REQUIRE_THAT(puml, Contains("AA +-- AAA"));
REQUIRE_THAT(puml, Contains("AA +-- Lights"));
REQUIRE_THAT(puml, Contains("+ foo() const"));
REQUIRE_THAT(puml, Contains("+ foo2() const"));
save_puml(
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);