File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -525,8 +525,8 @@ template <typename T>
525
525
static void populateInfo (Info &I, const T *D, const FullComment *C,
526
526
bool &IsInAnonymousNamespace) {
527
527
I.USR = getUSRForDecl (D);
528
- auto ConversionDecl = dyn_cast_or_null<CXXConversionDecl>(D);
529
- if ( ConversionDecl && ConversionDecl->getConversionType ()
528
+ if ( auto ConversionDecl = dyn_cast_or_null<CXXConversionDecl>(D);
529
+ ConversionDecl && ConversionDecl->getConversionType ()
530
530
.getTypePtr ()
531
531
->isTemplateTypeParmType ())
532
532
I.Name = " operator " + ConversionDecl->getConversionType ().getAsString ();
Original file line number Diff line number Diff line change
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
+ // FileCheck %s --check-prefix=CHECK-HTML
8
+
9
+ template <typename T>
10
+ struct MyStruct {
11
+ operator T ();
12
+ };
13
+
14
+ // CHECK-YAML: Name: 'operator T'
15
+
16
+ // CHECK-HTML: <h3 id='{{[0-9A-F]*}}'>operator T</h3>
17
+ // CHECK-HTML: <p>public T operator T</p>
You can’t perform that action at this time.
0 commit comments