Added test case documentation generator

This commit is contained in:
Bartek Kryza
2021-04-17 22:39:18 +02:00
parent 4f0302496e
commit 9884cc6d94
35 changed files with 1111 additions and 0 deletions

42
docs/test_cases/t00009.md Normal file
View File

@@ -0,0 +1,42 @@
# t00009 - Template instantiation
## Config
```yaml
compilation_database_dir: ..
output_directory: puml
diagrams:
t00009_class:
type: class
glob:
- ../../tests/t00009/t00009.cc
using_namespace:
- clanguml::t00009
include:
namespaces:
- clanguml::t00009
```
## Source code
```cpp
#include <string>
#include <vector>
namespace clanguml {
namespace t00009 {
template <typename T> class A {
public:
T value;
};
class B {
public:
A<int> aint;
A<std::string> *astring;
A<std::vector<std::string>> &avector;
};
}
}
```
## Generated UML diagrams
![t00009_class](./t00009_class.png "Template instantiation")