Files
clang-uml/docs/test_cases/t40001.md
2023-08-30 00:19:11 +02:00

3.5 KiB

t40001 - Basic include graph diagram test case

Config

compilation_database_dir: ..
output_directory: puml
diagrams:
  t40001_include:
    type: include
    # Provide the files to parse in order to look
    # for #include directives
    glob:
      - ../../tests/t40001/src/t40001.cc
    # Render the paths relative to this directory
    relative_to: ../../../tests/t40001
    # Include also external system headers
    generate_system_headers: true
    include:
      # Include only headers belonging to these paths
      paths:
        - .
    plantuml:
      before:
        - "' t40001 test diagram of type {{ diagram.type }}"
      after:
        - 'note right of {{ alias("include/lib1") }}: This is a lib1 include dir'
        - 'note right of {{ alias("include/t40001_include1.h") }}: This is a t40001_include1.h include file'

Source code

Generated UML diagrams

t40001_include

Generated JSON models

{
  "diagram_type": "include",
  "elements": [
    {
      "display_name": "src",
      "elements": [
        {
          "display_name": "src/t40001.cc",
          "file_kind": "implementation",
          "id": "1755015016680017839",
          "name": "t40001.cc",
          "type": "file"
        }
      ],
      "id": "1387619747296316447",
      "name": "src",
      "type": "folder"
    },
    {
      "display_name": "string",
      "file_kind": "header",
      "id": "1687197357150905926",
      "name": "string",
      "type": "file"
    },
    {
      "display_name": "vector",
      "file_kind": "header",
      "id": "405203884025072971",
      "name": "vector",
      "type": "file"
    },
    {
      "display_name": "include",
      "elements": [
        {
          "display_name": "include/t40001_include1.h",
          "file_kind": "header",
          "id": "1926692816440595520",
          "name": "t40001_include1.h",
          "type": "file"
        },
        {
          "display_name": "include/lib1",
          "elements": [
            {
              "display_name": "include/lib1/lib1.h",
              "file_kind": "header",
              "id": "2193549214042244690",
              "name": "lib1.h",
              "type": "file"
            }
          ],
          "id": "1687675335949018432",
          "name": "lib1",
          "type": "folder"
        }
      ],
      "id": "989412417490706876",
      "name": "include",
      "type": "folder"
    },
    {
      "display_name": "yaml-cpp/yaml.h",
      "file_kind": "header",
      "id": "1659736894483045485",
      "name": "yaml-cpp/yaml.h",
      "type": "file"
    }
  ],
  "metadata": {
    "clang_uml_version": "0.3.8-27-gcdc3659",
    "llvm_version": "Ubuntu clang version 15.0.7",
    "schema_version": 1
  },
  "name": "t40001_include",
  "relationships": [
    {
      "destination": "1687197357150905926",
      "source": "1755015016680017839",
      "type": "dependency"
    },
    {
      "destination": "405203884025072971",
      "source": "1755015016680017839",
      "type": "dependency"
    },
    {
      "destination": "1926692816440595520",
      "source": "1755015016680017839",
      "type": "association"
    },
    {
      "destination": "2193549214042244690",
      "source": "1926692816440595520",
      "type": "association"
    },
    {
      "destination": "1659736894483045485",
      "source": "1926692816440595520",
      "type": "dependency"
    },
    {
      "destination": "1687197357150905926",
      "source": "1926692816440595520",
      "type": "dependency"
    }
  ]
}