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

Samrudh Nelli via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 03:46:03 PDT 2026


SamrudhNelli wrote:

```
<td>
{{#Description}}
<!-- whatever logic ... --->
{{/Description}}
{{^Description}} -- {{/Description}}
</td>
```
The problem with the above format is that for enums with a Description. a trailing new line will be added due to the {{^Description}} check. 

Current code:
```
<td>{{#Description}}
<!-- whatever logic ... --->
{{/Description}}
{{^Description}} -- {{/Description}}</td>
```
Alternative (Remove adding "--" for empty cells):
```
<td>
{{#Description}}
<!-- whatever logic ... --->
{{/Description}}
</td>
```

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


More information about the cfe-commits mailing list