Added test case documentation generator
This commit is contained in:
46
docs/test_cases/t00010.md
Normal file
46
docs/test_cases/t00010.md
Normal file
@@ -0,0 +1,46 @@
|
||||
# t00010 - Basic template instantiation
|
||||
## Config
|
||||
```yaml
|
||||
compilation_database_dir: ..
|
||||
output_directory: puml
|
||||
diagrams:
|
||||
t00010_class:
|
||||
type: class
|
||||
glob:
|
||||
- ../../tests/t00010/t00010.cc
|
||||
using_namespace:
|
||||
- clanguml::t00010
|
||||
include:
|
||||
namespaces:
|
||||
- clanguml::t00010
|
||||
|
||||
```
|
||||
## Source code
|
||||
```cpp
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00010 {
|
||||
|
||||
template <typename T, typename P> class A {
|
||||
public:
|
||||
T first;
|
||||
P second;
|
||||
};
|
||||
|
||||
template <typename T> class B {
|
||||
public:
|
||||
A<T, std::string> astring;
|
||||
};
|
||||
|
||||
class C {
|
||||
public:
|
||||
B<int> aintstring;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
## Generated UML diagrams
|
||||

|
||||
Reference in New Issue
Block a user