1 | // RUN: rm -rf %t && mkdir -p %t |
---|---|
2 | |
3 | // RUN: clang-doc --output=%t --executor=standalone %s |
4 | // RUN: find %t/ -regex ".*/[0-9A-F]*.yaml" -exec cat {} ";" | FileCheck %s --check-prefix=CHECK-YAML |
5 | |
6 | // RUN: clang-doc --format=html --output=%t --executor=standalone %s |
7 | // RUN: FileCheck %s < %t/GlobalNamespace/MyStruct.html --check-prefix=CHECK-HTML |
8 | |
9 | template <typename T> |
10 | struct MyStruct { |
11 | operator T(); |
12 | }; |
13 | |
14 | // Output correct conversion names. |
15 | // CHECK-YAML: Name: 'operator T' |
16 | |
17 | // CHECK-HTML: <h3 id="{{[0-9A-F]*}}">operator T</h3> |
18 | // CHECK-HTML: <p>public T operator T()</p> |
19 |