[clang-tools-extra] [Clang-doc] Display enum comments in HTML (PR #183085)
Samrudh Nelli via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 10:14:45 PST 2026
================
@@ -26,6 +29,29 @@
{{^Value}}
<td>{{ValueExpr}}</td>
{{/Value}}
+ {{#HasComments}}
+ <td>{{#Description}}
+ {{#BriefComments}}
+ {{#.}}
+ <p class="paragraph-container">{{TextComment}}</p>
+ {{/.}}
+ {{/BriefComments}}
+ {{#ParagraphComments}}
+ <p class="paragraph-container">
+ {{#.}}
+ {{TextComment}}<br>
+ {{/.}}
+ </p>
+ {{/ParagraphComments}}
+ {{#ParagraphComment}}
+ <p>
+ {{#Children}}
+ {{TextComment}}
+ {{/Children}}
+ </p>
+ {{/ParagraphComment}}
+ {{/Description}}{{^Description}} -- {{/Description}}</td>
----------------
SamrudhNelli wrote:
This awkward formatting of `</td>` was done intentionally to avoid a trailing newline before `</td>`.
https://github.com/llvm/llvm-project/pull/183085
More information about the cfe-commits
mailing list