1
1
// RUN: rm -rf %t
2
2
// RUN: mkdir %t
3
+
3
4
// RUN: clang-doc --doxygen --executor=standalone %s -output=%t/docs
4
5
// RUN: cat %t/docs/index.yaml | FileCheck %s --check-prefix=YAML
5
6
7
+ // RUN: clang-doc --doxygen --executor=standalone %s -output=%t/docs --format=md
8
+ // RUN: cat %t/docs/GlobalNamespace/index.md | FileCheck %s --check-prefix=MD
9
+
6
10
// YAML: ---
7
11
// YAML-NEXT: USR: '{{([0-9A-F]{40})}}'
8
12
13
+ // MD: # Global Namespace
14
+ // MD: ## Functions
15
+
9
16
template <class ... T>
10
17
void ParamPackFunction (T... args);
11
18
@@ -28,6 +35,9 @@ void ParamPackFunction(T... args);
28
35
// YAML-NEXT: Params:
29
36
// YAML-NEXT: - Contents: 'class... T'
30
37
38
+ // MD: ### ParamPackFunction
39
+ // MD: *void ParamPackFunction(T... args)*
40
+
31
41
template <typename T, int U = 1 >
32
42
void function (T x) {}
33
43
@@ -50,6 +60,10 @@ void function(T x) {}
50
60
// YAML-NEXT: - Contents: 'typename T'
51
61
// YAML-NEXT: - Contents: 'int U = 1'
52
62
63
+ // MD: ### function
64
+ // MD: *void function(T x)*
65
+ // MD: *Defined at {{.*}}templates.cpp#[[# @LINE - 23]]*
66
+
53
67
template <>
54
68
void function<bool , 0 >(bool x) {}
55
69
@@ -75,3 +89,7 @@ void function<bool, 0>(bool x) {}
75
89
// YAML-NEXT: - Contents: '0'
76
90
// YAML-NEXT: ...
77
91
92
+ // MD: ### function
93
+ // MD: *void function(_Bool x)*
94
+ // MD: *Defined at {{.*}}templates.cpp#[[# @LINE - 27]]*
95
+
0 commit comments