324 lines
7.7 KiB
Markdown
324 lines
7.7 KiB
Markdown
# t00060 - Parents (base classes) diagram filter test case
|
|
## Config
|
|
```yaml
|
|
compilation_database_dir: ..
|
|
output_directory: puml
|
|
diagrams:
|
|
t00060_class:
|
|
type: class
|
|
glob:
|
|
- ../../tests/t00060/t00060.cc
|
|
include:
|
|
namespaces:
|
|
- clanguml::t00060
|
|
parents:
|
|
- clanguml::t00060::D
|
|
- clanguml::t00060::H<T,P>
|
|
using_namespace:
|
|
- clanguml::t00060
|
|
```
|
|
## Source code
|
|
File t00060.cc
|
|
```cpp
|
|
namespace clanguml {
|
|
namespace t00060 {
|
|
struct A { };
|
|
struct B : public A { };
|
|
struct C : public A { };
|
|
struct D : public B, public C { };
|
|
struct E : public C { };
|
|
struct F : public D { };
|
|
|
|
template <typename T> struct G {
|
|
T g;
|
|
};
|
|
|
|
template <typename T, typename P> struct H : public G<T> {
|
|
G<T> h;
|
|
P hh;
|
|
};
|
|
|
|
}
|
|
}
|
|
```
|
|
## Generated UML diagrams
|
|
 diagram filter test case")
|
|
## Generated JSON models
|
|
```json
|
|
{
|
|
"diagram_type": "class",
|
|
"elements": [
|
|
{
|
|
"bases": [],
|
|
"display_name": "clanguml::t00060::A",
|
|
"id": "1373615549846303472",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": true,
|
|
"is_template": false,
|
|
"is_union": false,
|
|
"members": [],
|
|
"methods": [],
|
|
"name": "A",
|
|
"namespace": "clanguml::t00060",
|
|
"source_location": {
|
|
"column": 8,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 3,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"template_parameters": [],
|
|
"type": "class"
|
|
},
|
|
{
|
|
"bases": [
|
|
{
|
|
"access": "public",
|
|
"id": "1373615549846303472",
|
|
"is_virtual": false,
|
|
"name": "clanguml::t00060::A"
|
|
}
|
|
],
|
|
"display_name": "clanguml::t00060::B",
|
|
"id": "479650368930934571",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": true,
|
|
"is_template": false,
|
|
"is_union": false,
|
|
"members": [],
|
|
"methods": [],
|
|
"name": "B",
|
|
"namespace": "clanguml::t00060",
|
|
"source_location": {
|
|
"column": 8,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 4,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"template_parameters": [],
|
|
"type": "class"
|
|
},
|
|
{
|
|
"bases": [
|
|
{
|
|
"access": "public",
|
|
"id": "1373615549846303472",
|
|
"is_virtual": false,
|
|
"name": "clanguml::t00060::A"
|
|
}
|
|
],
|
|
"display_name": "clanguml::t00060::C",
|
|
"id": "1827660844127264787",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": true,
|
|
"is_template": false,
|
|
"is_union": false,
|
|
"members": [],
|
|
"methods": [],
|
|
"name": "C",
|
|
"namespace": "clanguml::t00060",
|
|
"source_location": {
|
|
"column": 8,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 5,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"template_parameters": [],
|
|
"type": "class"
|
|
},
|
|
{
|
|
"bases": [
|
|
{
|
|
"access": "public",
|
|
"id": "479650368930934571",
|
|
"is_virtual": false,
|
|
"name": "clanguml::t00060::B"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"id": "1827660844127264787",
|
|
"is_virtual": false,
|
|
"name": "clanguml::t00060::C"
|
|
}
|
|
],
|
|
"display_name": "clanguml::t00060::D",
|
|
"id": "1629687372290281981",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": true,
|
|
"is_template": false,
|
|
"is_union": false,
|
|
"members": [],
|
|
"methods": [],
|
|
"name": "D",
|
|
"namespace": "clanguml::t00060",
|
|
"source_location": {
|
|
"column": 8,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 6,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"template_parameters": [],
|
|
"type": "class"
|
|
},
|
|
{
|
|
"bases": [],
|
|
"display_name": "clanguml::t00060::G<T>",
|
|
"id": "1877304825033069517",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": true,
|
|
"is_template": true,
|
|
"is_union": false,
|
|
"members": [
|
|
{
|
|
"access": "public",
|
|
"is_static": false,
|
|
"name": "g",
|
|
"source_location": {
|
|
"column": 7,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 11,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"type": "T"
|
|
}
|
|
],
|
|
"methods": [],
|
|
"name": "G",
|
|
"namespace": "clanguml::t00060",
|
|
"source_location": {
|
|
"column": 30,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 10,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"template_parameters": [
|
|
{
|
|
"is_variadic": false,
|
|
"kind": "template_type",
|
|
"name": "T",
|
|
"template_parameters": []
|
|
}
|
|
],
|
|
"type": "class"
|
|
},
|
|
{
|
|
"bases": [
|
|
{
|
|
"access": "public",
|
|
"id": "1877304825033069517",
|
|
"is_virtual": false,
|
|
"name": "G<T>"
|
|
}
|
|
],
|
|
"display_name": "clanguml::t00060::H<T,P>",
|
|
"id": "1881610349123495638",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": true,
|
|
"is_template": true,
|
|
"is_union": false,
|
|
"members": [
|
|
{
|
|
"access": "public",
|
|
"is_static": false,
|
|
"name": "h",
|
|
"source_location": {
|
|
"column": 10,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 15,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"type": "G<T>"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"is_static": false,
|
|
"name": "hh",
|
|
"source_location": {
|
|
"column": 7,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 16,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"type": "P"
|
|
}
|
|
],
|
|
"methods": [],
|
|
"name": "H",
|
|
"namespace": "clanguml::t00060",
|
|
"source_location": {
|
|
"column": 42,
|
|
"file": "../../tests/t00060/t00060.cc",
|
|
"line": 14,
|
|
"translation_unit": "../../tests/t00060/t00060.cc"
|
|
},
|
|
"template_parameters": [
|
|
{
|
|
"is_variadic": false,
|
|
"kind": "template_type",
|
|
"name": "T",
|
|
"template_parameters": []
|
|
},
|
|
{
|
|
"is_variadic": false,
|
|
"kind": "template_type",
|
|
"name": "P",
|
|
"template_parameters": []
|
|
}
|
|
],
|
|
"type": "class"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"clang_uml_version": "0.3.8-32-ge830195",
|
|
"llvm_version": "Ubuntu clang version 15.0.7",
|
|
"schema_version": 1
|
|
},
|
|
"name": "t00060_class",
|
|
"relationships": [
|
|
{
|
|
"access": "public",
|
|
"destination": "1373615549846303472",
|
|
"source": "479650368930934571",
|
|
"type": "extension"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"destination": "1373615549846303472",
|
|
"source": "1827660844127264787",
|
|
"type": "extension"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"destination": "479650368930934571",
|
|
"source": "1629687372290281981",
|
|
"type": "extension"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"destination": "1827660844127264787",
|
|
"source": "1629687372290281981",
|
|
"type": "extension"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"destination": "1877304825033069517",
|
|
"label": "h",
|
|
"source": "1881610349123495638",
|
|
"type": "aggregation"
|
|
},
|
|
{
|
|
"access": "public",
|
|
"destination": "1877304825033069517",
|
|
"source": "1881610349123495638",
|
|
"type": "extension"
|
|
}
|
|
],
|
|
"using_namespace": "clanguml::t00060"
|
|
}
|
|
```
|