[clang-tools-extra] [Clang-doc] Display enum comments in HTML (PR #183085)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 09:23:59 PDT 2026


================
@@ -26,6 +29,30 @@
                 {{^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>
----------------
ilovepi wrote:

ah, good point. A testcase will help then.

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


More information about the cfe-commits mailing list