0.5.4
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
t20035 - from_to sequence diagram test case with free functions

Config

diagrams:
t20035_sequence:
type: sequence
glob:
- t20035.cc
include:
namespaces:
- clanguml::t20035
using_namespace: clanguml::t20035
from_to:
- [function: "clanguml::t20035::tmain(int,char **)",
function: "clanguml::t20035::c(int)"]

Source code

File tests/t20035/t20035.cc

namespace clanguml {
namespace t20035 {
int c(int arg) { return arg; }
int b1(int arg) { return c(arg); }
int b2(int arg) { return c(arg); }
int a(int arg) { return b1(arg); }
int tmain(int argc, char **argv) { return a(argc); }
}
}

Generated PlantUML diagrams

Generated Mermaid diagrams

Generated JSON models

{
"diagram_type": "sequence",
"name": "t20035_sequence",
"participants": [
{
"display_name": "tmain(int,char **)",
"full_name": "clanguml::t20035::tmain(int,char **)",
"id": "11040797971822484165",
"name": "tmain",
"namespace": "clanguml::t20035",
"source_location": {
"column": 5,
"file": "t20035.cc",
"line": 12,
"translation_unit": "t20035.cc"
},
"type": "function"
},
{
"display_name": "a(int)",
"full_name": "clanguml::t20035::a(int)",
"id": "12025158655675629891",
"name": "a",
"namespace": "clanguml::t20035",
"source_location": {
"column": 5,
"file": "t20035.cc",
"line": 10,
"translation_unit": "t20035.cc"
},
"type": "function"
},
{
"display_name": "b1(int)",
"full_name": "clanguml::t20035::b1(int)",
"id": "3521592911277981276",
"name": "b1",
"namespace": "clanguml::t20035",
"source_location": {
"column": 5,
"file": "t20035.cc",
"line": 6,
"translation_unit": "t20035.cc"
},
"type": "function"
},
{
"display_name": "c(int)",
"full_name": "clanguml::t20035::c(int)",
"id": "5672819137448183130",
"name": "c",
"namespace": "clanguml::t20035",
"source_location": {
"column": 5,
"file": "t20035.cc",
"line": 4,
"translation_unit": "t20035.cc"
},
"type": "function"
}
],
"sequences": [
{
"from_to": {
"from": {
"id": "11040797971822484165",
"location": "clanguml::t20035::tmain(int,char **)"
},
"to": {
"id": "5672819137448183130",
"location": "clanguml::t20035::c(int)"
}
},
"message_chains": [
{
"messages": [
{
"from": {
"activity_id": "11040797971822484165",
"participant_id": "11040797971822484165"
},
"name": "",
"return_type": "int",
"scope": "normal",
"source_location": {
"column": 43,
"file": "t20035.cc",
"line": 12,
"translation_unit": "t20035.cc"
},
"to": {
"activity_id": "12025158655675629891",
"participant_id": "12025158655675629891"
},
"type": "message"
},
{
"from": {
"activity_id": "12025158655675629891",
"participant_id": "12025158655675629891"
},
"name": "",
"return_type": "int",
"scope": "normal",
"source_location": {
"column": 25,
"file": "t20035.cc",
"line": 10,
"translation_unit": "t20035.cc"
},
"to": {
"activity_id": "3521592911277981276",
"participant_id": "3521592911277981276"
},
"type": "message"
},
{
"from": {
"activity_id": "3521592911277981276",
"participant_id": "3521592911277981276"
},
"name": "",
"return_type": "int",
"scope": "normal",
"source_location": {
"column": 26,
"file": "t20035.cc",
"line": 6,
"translation_unit": "t20035.cc"
},
"to": {
"activity_id": "5672819137448183130",
"participant_id": "5672819137448183130"
},
"type": "message"
}
]
}
]
}
],
"using_namespace": "clanguml::t20035"
}