[clangd] Fix crash in hover

This commit is contained in:
Ilya Biryukov 2019-12-27 09:11:03 +01:00
parent 7a7334663c
commit 14e11005d1
2 changed files with 507 additions and 490 deletions

View File

@ -195,7 +195,7 @@ const NamedDecl *getDeclForComment(const NamedDecl *D) {
return VTSD->getTemplateInstantiationPattern(); return VTSD->getTemplateInstantiationPattern();
if (auto *FD = D->getAsFunction()) if (auto *FD = D->getAsFunction())
if (FD->isTemplateInstantiation()) if (FD->isTemplateInstantiation())
return FD->getTemplateSpecializationInfo()->getTemplate(); return FD->getTemplateInstantiationPattern();
return D; return D;
} }

File diff suppressed because it is too large Load Diff