Added generation of dependency relations based on method params

This commit is contained in:
Bartek Kryza
2021-03-18 23:14:40 +01:00
parent d55e57eb05
commit 2322833897
8 changed files with 133 additions and 14 deletions

38
tests/t00013/t00013.cc Normal file
View File

@@ -0,0 +1,38 @@
#include <algorithm>
#include <map>
#include <numeric>
#include <string>
#include <variant>
namespace clanguml {
namespace t00013 {
struct A {
int a;
};
struct B {
int b;
};
struct C {
int c;
};
class R;
struct D {
int d;
void print(R *r) {}
};
class R {
public:
int get_a(A *a) { return a->a; }
int get_b(B &b) { return b.b; }
// TODO: int get_b(const B &b) { return b.b; }
int get_c(C c) { return c.c; }
int get_d(D &&d) { return d.d; }
};
}
}