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

Erick Velez via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 19 09:22:07 PST 2026


================
@@ -1207,8 +1207,8 @@ emitInfo(const EnumDecl *D, const FullComment *FC, Location Loc,
     return {};
 
   Enum.Scoped = D->isScoped();
-  if (D->isFixed()) {
-    auto Name = D->getIntegerType().getAsString();
+  if (const TypeSourceInfo *Info = D->getIntegerTypeSourceInfo()) {
----------------
evelez7 wrote:

mega-nit: `Info` is a pretty loaded name in clang-doc's context. Everything is called an `Info`. I know this is local to the conditional, but can we rename this to something like `EnumTypeInfo`?

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


More information about the cfe-commits mailing list