Added test case documentation generator
This commit is contained in:
42
docs/test_cases/t00009.md
Normal file
42
docs/test_cases/t00009.md
Normal 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
|
||||

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