diff --git a/docs/test_cases.md b/docs/test_cases.md index 19d605fa..c1a89cdf 100644 --- a/docs/test_cases.md +++ b/docs/test_cases.md @@ -31,6 +31,7 @@ * [t00030](./test_cases/t00030.md) - PlantUML relationship decorators test case * [t00031](./test_cases/t00031.md) - PlantUML style decorator test case * [t00032](./test_cases/t00032.md) - Class template with template base classes test case + * [t00033](./test_cases/t00033.md) - Nested template instantiation dependency test case ## Sequence diagrams * [t20001](./test_cases/t20001.md) - Basic sequence diagram ## Configuration diagrams diff --git a/docs/test_cases/t00006_class.png b/docs/test_cases/t00006_class.png index fb5f38a9..6b052977 100644 Binary files a/docs/test_cases/t00006_class.png and b/docs/test_cases/t00006_class.png differ diff --git a/docs/test_cases/t00025_class.png b/docs/test_cases/t00025_class.png index 15f6e781..9b76a458 100644 Binary files a/docs/test_cases/t00025_class.png and b/docs/test_cases/t00025_class.png differ diff --git a/docs/test_cases/t00032_class.png b/docs/test_cases/t00032_class.png index a8dd3edb..cbd72e5c 100644 Binary files a/docs/test_cases/t00032_class.png and b/docs/test_cases/t00032_class.png differ diff --git a/docs/test_cases/t00033.md b/docs/test_cases/t00033.md new file mode 100644 index 00000000..25ef901d --- /dev/null +++ b/docs/test_cases/t00033.md @@ -0,0 +1,52 @@ +# t00033 - Nested template instantiation dependency test case +## Config +```yaml +compilation_database_dir: .. +output_directory: puml +diagrams: + t00033_class: + type: class + glob: + - ../../tests/t00033/t00033.cc + using_namespace: + - clanguml::t00033 + include: + namespaces: + - clanguml::t00033 + +``` +## Source code +File t00033.cc +```cpp +#include +#include + +namespace clanguml { +namespace t00033 { + +template struct A { + T aaa; +}; + +template struct B { + T bbb; +}; + +template struct C { + T ccc; +}; + +struct D { + int ddd; +}; + +struct R { + A>> abc; +}; + +} // namespace t00033 +} // namespace clanguml + +``` +## Generated UML diagrams +![t00033_class](./t00033_class.png "Nested template instantiation dependency test case") diff --git a/docs/test_cases/t00033_class.png b/docs/test_cases/t00033_class.png new file mode 100644 index 00000000..987938ca Binary files /dev/null and b/docs/test_cases/t00033_class.png differ