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
9template <typename T>
10struct 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

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

source code of clang-tools-extra/test/clang-doc/conversion_function.cpp