File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1610,10 +1610,13 @@ DeclarationFragmentsBuilder::getFunctionSignature(const ObjCMethodDecl *);
16101610DeclarationFragments
16111611DeclarationFragmentsBuilder::getSubHeading (const NamedDecl *Decl) {
16121612 DeclarationFragments Fragments;
1613- if (isa<CXXConstructorDecl>(Decl) || isa<CXXDestructorDecl>(Decl))
1613+ if (isa<CXXConstructorDecl>(Decl)) {
16141614 Fragments.append (cast<CXXRecordDecl>(Decl->getDeclContext ())->getName (),
16151615 DeclarationFragments::FragmentKind::Identifier);
1616- else if (isa<CXXConversionDecl>(Decl)) {
1616+ } else if (isa<CXXDestructorDecl>(Decl)) {
1617+ Fragments.append (cast<CXXDestructorDecl>(Decl)->getNameAsString (),
1618+ DeclarationFragments::FragmentKind::Identifier);
1619+ } else if (isa<CXXConversionDecl>(Decl)) {
16171620 Fragments.append (
16181621 cast<CXXConversionDecl>(Decl)->getConversionType ().getAsString (),
16191622 DeclarationFragments::FragmentKind::Identifier);
@@ -1627,9 +1630,11 @@ DeclarationFragmentsBuilder::getSubHeading(const NamedDecl *Decl) {
16271630 } else if (Decl->getIdentifier ()) {
16281631 Fragments.append (Decl->getName (),
16291632 DeclarationFragments::FragmentKind::Identifier);
1630- } else
1633+ } else {
16311634 Fragments.append (Decl->getDeclName ().getAsString (),
16321635 DeclarationFragments::FragmentKind::Identifier);
1636+ }
1637+
16331638 return Fragments;
16341639}
16351640
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ class Foo {
213213 " subHeading" : [
214214 {
215215 " kind" : " identifier" ,
216- " spelling" : " Foo"
216+ " spelling" : " ~ Foo"
217217 }
218218 ],
219219 " title" : " ~Foo"
You can’t perform that action at this time.
0 commit comments