================ @@ -418,9 +419,13 @@ genRecordMembersBlock(const llvm::SmallVector<MemberTypeInfo, 4> &Members, if (Access != "") Access = Access + " "; auto LIBody = std::make_unique<TagNode>(HTMLTag::TAG_LI); - LIBody->Children.emplace_back(std::make_unique<TextNode>(Access)); - LIBody->Children.emplace_back(genReference(M.Type, ParentInfoDir)); - LIBody->Children.emplace_back(std::make_unique<TextNode>(" " + M.Name)); + auto MemberDecl = std::make_unique<TagNode>(HTMLTag::TAG_DIV); + MemberDecl->Children.emplace_back(std::make_unique<TextNode>(Access)); + MemberDecl->Children.emplace_back(genReference(M.Type, ParentInfoDir)); + MemberDecl->Children.emplace_back(std::make_unique<TextNode>(" " + M.Name)); + if (!M.Description.empty()) + LIBody->Children.emplace_back(genHTML(M.Description)); + LIBody->Children.emplace_back(std::move(MemberDecl)); ---------------- PeterChou1 wrote:
this originally meant to add support for block commands in member variables, I be happy to refactor these to its own pr though https://github.com/llvm/llvm-project/pull/101108 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits