[clang-tools-extra] [clangd] extend and rearrange doxygen hover documentation (PR #152918)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 10 08:36:38 PDT 2025


================
@@ -112,7 +112,7 @@ std::string getDeclComment(const ASTContext &Ctx, const NamedDecl &Decl) {
   std::string Doc;
 
   if (Cfg.Documentation.CommentFormat == Config::CommentFormatPolicy::Doxygen &&
-      isa<ParmVarDecl>(Decl)) {
+      (isa<ParmVarDecl>(Decl) || isa<TemplateTypeParmDecl>(Decl))) {
----------------
zwuis wrote:

`isa<Decl1, Decl2>(Decl)`

https://github.com/llvm/llvm-project/pull/152918


More information about the cfe-commits mailing list