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

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 19 09:30:41 PST 2026


================
@@ -153,7 +251,7 @@ class Animals {
 // HTML-ANIMAL-NEXT:                 <p> specify what animal the class is</p>
 // HTML-ANIMAL-NEXT:             </div>
 // HTML-ANIMAL-NEXT:         </div>
-// HTML-ANIMAL-NEXT:         <p>Defined at line 116 of file {{.*}}enum.cpp</p>
+// HTML-ANIMAL-NEXT:         <p>Defined at line {{.*}} of file {{.*}}enum.cpp</p>
----------------
ilovepi wrote:

We do want to make sure the line references are correct. the `@LINE` directive may help, but its not always easy if the check is far away.

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


More information about the cfe-commits mailing list