5.2 KiB
5.2 KiB
t30004 - PlantUML package decorators test case
Config
compilation_database_dir: ..
output_directory: diagrams
diagrams:
t30004_package:
type: package
glob:
- ../../tests/t30004/t30004.cc
include:
namespaces:
- clanguml::t30004
using_namespace:
- clanguml::t30004
plantuml:
before:
- "' t30004 test package diagram"
Source code
File t30004.cc
namespace clanguml {
namespace t30004 {
/// @uml{style[#green]}
namespace A {
/// @uml{note[ bottom ] Package AAA.}
namespace AAA {
}
/// \uml{note[right] Package BBB.}
namespace BBB {
}
///
/// @uml{note:t30004_package[bottom] CCCC package note.}
/// This is package CCC.
namespace CCC {
}
/// \uml{skip}
namespace DDD {
}
/// @uml{style[#pink;line:red;line.bold;text:red]}
/// \uml{note[top] We skipped DDD.}
namespace EEE {
}
/// \uml{note[top] Another CCC note.}
namespace CCC {
}
}
}
}
Generated PlantUML diagrams
Generated Mermaid diagrams
Generated JSON models
{
"diagram_type": "package",
"elements": [
{
"display_name": "clanguml",
"elements": [
{
"display_name": "clanguml::t30004",
"id": "678274068594347618",
"is_deprecated": false,
"name": "t30004",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 2,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
}
],
"id": "2174271399507040339",
"is_deprecated": false,
"name": "clanguml",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 1,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
},
{
"comment": {
"formatted": "@uml{style[#green]}",
"raw": "/// @uml{style[#green]}"
},
"display_name": "clanguml::t30004::A",
"elements": [
{
"comment": {
"formatted": "@uml{note[ bottom ] Package AAA.}",
"raw": "/// @uml{note[ bottom ] Package AAA.}"
},
"display_name": "clanguml::t30004::A::AAA",
"id": "1517185300862579159",
"is_deprecated": false,
"name": "AAA",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 8,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
},
{
"comment": {
"formatted": "\\uml{note[right] Package BBB.}",
"raw": "/// \\uml{note[right] Package BBB.}"
},
"display_name": "clanguml::t30004::A::BBB",
"id": "1982379087062354928",
"is_deprecated": false,
"name": "BBB",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 12,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
},
{
"comment": {
"formatted": "\n @uml{note:t30004_package[bottom] CCCC package note.}\n This is package CCC.",
"raw": "///\n/// @uml{note:t30004_package[bottom] CCCC package note.}\n/// This is package CCC."
},
"display_name": "clanguml::t30004::A::CCC",
"id": "2304726195556701567",
"is_deprecated": false,
"name": "CCC",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 18,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
},
{
"comment": {
"formatted": "@uml{style[#pink;line:red;line.bold;text:red]}\n\\uml{note[top] We skipped DDD.}",
"raw": "/// @uml{style[#pink;line:red;line.bold;text:red]}\n/// \\uml{note[top] We skipped DDD.}"
},
"display_name": "clanguml::t30004::A::EEE",
"id": "1084924732216290779",
"is_deprecated": false,
"name": "EEE",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 27,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
}
],
"id": "33410665874039845",
"is_deprecated": false,
"name": "A",
"source_location": {
"column": 11,
"file": "../../tests/t30004/t30004.cc",
"line": 5,
"translation_unit": "../../tests/t30004/t30004.cc"
},
"type": "namespace"
}
],
"metadata": {
"clang_uml_version": "0.4.0-32-g701b2c5",
"llvm_version": "Ubuntu clang version 16.0.6 (++20230710042027+7cbf1a259152-1~exp1~20230710162048.105)",
"schema_version": 1
},
"name": "t30004_package",
"relationships": [],
"using_namespace": "clanguml::t30004"
}