[clang-tools-extra] [Clangd] [NFC] Fix dereference of null value (PR #159566)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 18 09:07:44 PDT 2025
================
@@ -145,8 +145,11 @@ std::string getQualification(ASTContext &Context,
for (const auto *CurD : llvm::reverse(Parents)) {
if (auto *TD = llvm::dyn_cast<TagDecl>(CurD)) {
QualType T;
- if (const auto *RD = dyn_cast<CXXRecordDecl>(TD);
----------------
mizvekov wrote:
This should be possible, find a corresponding test case with a class, then change class to enum and you have a test case.
https://github.com/llvm/llvm-project/pull/159566
More information about the cfe-commits
mailing list