Skip to content

Commit 1287215

Browse files
committed
[clang-doc] Add Mustache output to conversion function test
1 parent 11036c3 commit 1287215

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang-tools-extra/test/clang-doc/conversion_function.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// RUN: clang-doc --format=html --output=%t --executor=standalone %s
77
// RUN: FileCheck %s < %t/GlobalNamespace/MyStruct.html --check-prefix=CHECK-HTML
88

9+
// RUN: clang-doc --format=mustache --output=%t --executor=standalone %s
10+
// RUN: FileCheck %s < %t/html/GlobalNamespace/_ZTV8MyStruct.html --check-prefix=CHECK-MUSTACHE
11+
912
template <typename T>
1013
struct MyStruct {
1114
operator T();
@@ -16,3 +19,7 @@ struct MyStruct {
1619

1720
// CHECK-HTML: <h3 id="{{[0-9A-F]*}}">operator T</h3>
1821
// CHECK-HTML: <p>public T operator T()</p>
22+
23+
// CHECK-MUSTACHE: <div id="{{([0-9A-F]{40})}}">
24+
// CHECK-MUSTACHE: <pre><code class="language-cpp code-clang-doc">T operator T ()</code></pre>
25+
// CHECK-MUSTACHE: </div>

0 commit comments

Comments
 (0)