[clang-tools-extra] [clang-doc] Display enum type along with enum name in HTML view (PR #181347)

Samrudh Nelli via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 13 12:05:30 PST 2026


================
@@ -7,7 +7,7 @@
 }}
 <div id="{{USR}}" class="delimiter-container">
     <div>
-        <pre><code class="language-cpp code-clang-doc">enum {{Name}}</code></pre>
+        <pre><code class="language-cpp code-clang-doc">enum {{Name}}{{#BaseType}} : {{Type.Name}}{{/BaseType}}</code></pre>
----------------
SamrudhNelli wrote:

Even inside`{{#BaseType}}`, `{{Name}}` returns the enum Name, I could change the `JSONGenerator.cpp` to replace the `Name` var with `Type` if you suggest..

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


More information about the cfe-commits mailing list