73 lines
1.5 KiB
Markdown
73 lines
1.5 KiB
Markdown
# t00063 - Element types diagram filter test case
|
|
## Config
|
|
```yaml
|
|
compilation_database_dir: ..
|
|
output_directory: puml
|
|
diagrams:
|
|
t00063_class:
|
|
type: class
|
|
glob:
|
|
- ../../tests/t00063/t00063.cc
|
|
include:
|
|
namespaces:
|
|
- clanguml::t00063
|
|
exclude:
|
|
element_types:
|
|
- enum
|
|
using_namespace:
|
|
- clanguml::t00063
|
|
```
|
|
## Source code
|
|
File t00063.cc
|
|
```cpp
|
|
namespace clanguml {
|
|
namespace t00063 {
|
|
class A { };
|
|
|
|
enum B { b1, b2, b3 };
|
|
|
|
enum class C { c1, c2, c3 };
|
|
}
|
|
}
|
|
```
|
|
## Generated UML diagrams
|
|

|
|
## Generated JSON models
|
|
```json
|
|
{
|
|
"diagram_type": "class",
|
|
"elements": [
|
|
{
|
|
"bases": [],
|
|
"display_name": "clanguml::t00063::A",
|
|
"id": "1518171774798799557",
|
|
"is_abstract": false,
|
|
"is_nested": false,
|
|
"is_struct": false,
|
|
"is_template": false,
|
|
"is_union": false,
|
|
"members": [],
|
|
"methods": [],
|
|
"name": "A",
|
|
"namespace": "clanguml::t00063",
|
|
"source_location": {
|
|
"column": 7,
|
|
"file": "../../tests/t00063/t00063.cc",
|
|
"line": 3,
|
|
"translation_unit": "../../tests/t00063/t00063.cc"
|
|
},
|
|
"template_parameters": [],
|
|
"type": "class"
|
|
}
|
|
],
|
|
"metadata": {
|
|
"clang_uml_version": "0.3.7-4-g43cc5cb",
|
|
"llvm_version": "Ubuntu clang version 16.0.1 (++20230328073357+42d1b276f779-1~exp1~20230328073502.65)",
|
|
"schema_version": 1
|
|
},
|
|
"name": "t00063_class",
|
|
"relationships": [],
|
|
"using_namespace": "clanguml::t00063"
|
|
}
|
|
```
|