We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7f0bb9 commit ea48d14Copy full SHA for ea48d14
clang-tools-extra/clangd/AST.cpp
@@ -147,7 +147,8 @@ std::string getQualification(ASTContext &Context,
147
if (auto *TD = llvm::dyn_cast<TagDecl>(CurD)) {
148
QualType T;
149
if (const auto *RD = dyn_cast<CXXRecordDecl>(TD);
150
- ClassTemplateDecl *CTD = RD->getDescribedClassTemplate()) {
+ ClassTemplateDecl *CTD =
151
+ RD ? RD->getDescribedClassTemplate() : nullptr) {
152
ArrayRef<TemplateArgument> Args;
153
if (const auto *SD = dyn_cast<ClassTemplateSpecializationDecl>(RD))
154
Args = SD->getTemplateArgs().asArray();
0 commit comments