Index: clangd/AST.cpp =================================================================== --- clangd/AST.cpp +++ clangd/AST.cpp @@ -95,11 +95,11 @@ return Out.str(); } // The name was empty, so present an anonymous entity. - if (auto *NS = llvm::dyn_cast(&ND)) + if (isa(&ND)) return "(anonymous namespace)"; if (auto *Cls = llvm::dyn_cast(&ND)) return ("(anonymous " + Cls->getKindName() + ")").str(); - if (auto *En = llvm::dyn_cast(&ND)) + if (isa(&ND)) return "(anonymous enum)"; return "(anonymous)"; }