Files
clang-uml/docs/test_cases/t90000.md
2023-09-13 20:07:10 +02:00

1.5 KiB

t90000 - Basic config test

Config

compilation_database_dir: ..
output_directory: diagrams
diagrams:
  t90000_class:
    type: class
    plantuml:
      before:
        - 'class "Foo" as C_001'
        - 'class C_001 {'
        - ' +int value'
        - '}'
        - 'C_001 <|-- ArrayList'
        - 'note top of C_001: This is a very important class.'
        - 'note "This is a\nfloating note" as N1'
        - 'note "This note is connected\nto several objects." as N2'
        - 'C_001 .. N2'
        - 'N2 .. ArrayList'
        - 'class "Boo" as C_002'
        - 'class C_002 {'
        - '}'
    mermaid:
      before:
        - 'class C_001["Foo"]'
        - 'class C_001 {'
        - ' +int value'
        - '}'
        - 'C_001 <|-- ArrayList'
        - 'note for C_001 "This is a very important class."'
        - 'note "This is a\nfloating note"'
        - 'class C_002["Boo"]'
        - 'class C_002 {'
        - '}'

Source code

File t90000.cc


Generated PlantUML diagrams

t90000_class

Generated Mermaid diagrams

t90000_class

Generated JSON models

{
  "diagram_type": "class",
  "elements": [],
  "metadata": {
    "clang_uml_version": "0.3.9-23-g7e22b0b",
    "llvm_version": "Ubuntu clang version 16.0.1 (++20230328073357+42d1b276f779-1~exp1~20230328073502.65)",
    "schema_version": 1
  },
  "name": "t90000_class",
  "relationships": []
}