# t30009 - Together layout hint test
## Config
```yaml
compilation_database_dir: ..
output_directory: puml
diagrams:
  t30009_package:
    type: package
    glob:
      - ../../tests/t30009/t30009.cc
    include:
      namespaces:
        - clanguml::t30009
    using_namespace:
      - clanguml::t30009
    layout:
      One::A:
        - together: [One::C]
      Two::B:
        - together: [Two::C, Two::D]
```
## Source code
File t30009.cc
```cpp
namespace clanguml::t30009 {
namespace One {
namespace A {
}
namespace B {
}
namespace C {
}
namespace D {
}
}
namespace Two {
namespace A {
}
namespace B {
}
namespace C {
}
namespace D {
}
}
}

```
## Generated UML diagrams
![t30009_package](./t30009_package.svg "Together layout hint test")
## Generated JSON models
```json
{
  "diagram_type": "package",
  "elements": [
    {
      "display_name": "clanguml::t30009::One",
      "elements": [
        {
          "display_name": "clanguml::t30009::One::A",
          "id": "1189741240939898414",
          "is_deprecated": false,
          "name": "A",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 3
          },
          "type": "namespace"
        },
        {
          "display_name": "clanguml::t30009::One::B",
          "id": "209763670816643341",
          "is_deprecated": false,
          "name": "B",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 5
          },
          "type": "namespace"
        },
        {
          "display_name": "clanguml::t30009::One::C",
          "id": "946522260503371974",
          "is_deprecated": false,
          "name": "C",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 7
          },
          "type": "namespace"
        },
        {
          "display_name": "clanguml::t30009::One::D",
          "id": "1181245940399690936",
          "is_deprecated": false,
          "name": "D",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 9
          },
          "type": "namespace"
        }
      ],
      "id": "1187941209208108244",
      "is_deprecated": false,
      "name": "One",
      "source_location": {
        "file": "../../tests/t30009/t30009.cc",
        "line": 2
      },
      "type": "namespace"
    },
    {
      "display_name": "clanguml::t30009::Two",
      "elements": [
        {
          "display_name": "clanguml::t30009::Two::A",
          "id": "986505573514384282",
          "is_deprecated": false,
          "name": "A",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 13
          },
          "type": "namespace"
        },
        {
          "display_name": "clanguml::t30009::Two::B",
          "id": "2156827588463114203",
          "is_deprecated": false,
          "name": "B",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 15
          },
          "type": "namespace"
        },
        {
          "display_name": "clanguml::t30009::Two::C",
          "id": "1653274432960093632",
          "is_deprecated": false,
          "name": "C",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 17
          },
          "type": "namespace"
        },
        {
          "display_name": "clanguml::t30009::Two::D",
          "id": "263095551354153183",
          "is_deprecated": false,
          "name": "D",
          "source_location": {
            "file": "../../tests/t30009/t30009.cc",
            "line": 19
          },
          "type": "namespace"
        }
      ],
      "id": "1940839474792549233",
      "is_deprecated": false,
      "name": "Two",
      "source_location": {
        "file": "../../tests/t30009/t30009.cc",
        "line": 12
      },
      "type": "namespace"
    }
  ],
  "metadata": {
    "clang_uml_version": "0.3.5-27-g81c7ce7",
    "llvm_version": "Ubuntu clang version 15.0.6",
    "schema_version": 1
  },
  "name": "t30009_package",
  "relationships": [],
  "using_namespace": "clanguml::t30009"
}
```
