[clang-tools-extra] [Clang-doc] Display enum comments in HTML (PR #183085)
Samrudh Nelli via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 2 09:48:44 PST 2026
================
@@ -68,9 +82,11 @@ enum Color {
// HTML-INDEX-NEXT: <p> For specifying RGB colors</p>
// HTML-INDEX-NEXT: </div>
// HTML-INDEX-NEXT: </div>
-// HTML-INDEX-NEXT: <p>Defined at line [[@LINE-45]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
+// HTML-INDEX-NEXT: <p>Defined at line [[@LINE-58]] of file {{.*}}clang-tools-extra{{[\/]}}test{{[\/]}}clang-doc{{[\/]}}enum.cpp</p>
// HTML-INDEX-NEXT: </div>
+// JSON-INDEX: "TextComment": " Comment 1"
+
----------------
SamrudhNelli wrote:
> The leading space tells me this isn't handled correctly in the generator (or maybe even in info geneartion). They likely need to be trimmed first, either in the json generator or when we're processing the comments in the first place.
Removed the leading whitespace, but many tests are written with those leading whitespace in mind, and are now broken. Is it okay if I update those?
https://github.com/llvm/llvm-project/pull/183085
More information about the cfe-commits
mailing list