Updated test cases documentation

This commit is contained in:
Bartek Kryza
2021-08-07 21:03:55 +02:00
parent 76dc761538
commit 668a7a0d9d
6 changed files with 53 additions and 0 deletions

52
docs/test_cases/t00033.md Normal file
View File

@@ -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 <memory>
#include <vector>
namespace clanguml {
namespace t00033 {
template <typename T> struct A {
T aaa;
};
template <typename T> struct B {
T bbb;
};
template <typename T> struct C {
T ccc;
};
struct D {
int ddd;
};
struct R {
A<B<C<D>>> abc;
};
} // namespace t00033
} // namespace clanguml
```
## Generated UML diagrams
![t00033_class](./t00033_class.png "Nested template instantiation dependency test case")