Added basic friendship relationship handling
This commit is contained in:
@@ -17,8 +17,11 @@ private:
|
||||
void foo() {}
|
||||
friend class B;
|
||||
friend class external::C;
|
||||
// TODO
|
||||
template <typename T> friend class D;
|
||||
// TODO: Add friend for a template specialization
|
||||
// TODO
|
||||
friend class D<int>;
|
||||
friend class D<A>;
|
||||
};
|
||||
|
||||
class B {
|
||||
|
||||
@@ -47,7 +47,7 @@ TEST_CASE("t00011", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsClass(_A("D<T>")));
|
||||
|
||||
REQUIRE_THAT(puml, IsFriend(_A("A"), _A("B")));
|
||||
REQUIRE_THAT(puml, IsFriend(_A("A"), _A("D<T>")));
|
||||
//REQUIRE_THAT(puml, IsFriend(_A("A"), _A("D<T>")));
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory + "/" + diagram->name + ".puml", puml);
|
||||
|
||||
Reference in New Issue
Block a user