<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/142083>142083</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-doc] Handle additional comment types in MustacheHTMLGenerator
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            clang-doc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ilovepi
      </td>
    </tr>
</table>

<pre>
    The new mustache generator is missing support for several comment types. Comparing the MDGenerator cases to what's in Mustache shows that we don't currently handle most cases. Even running the mustache backend over the tests/clang-doc/enum.cpp test triggers an assertion from unhandled an HTMLStartTagComment. Its infeasible that we'd be able to run it over a large codebase like clang until we handle those comment types.

Looking at that implementation, Its also likely that we'd benefit from translating the CommentInfo.Kind field into a strongly typed enum. That would make handling the different comment "kinds" with checked switch statements, rather than the pattern of `if/else`.

The work here is fairly trivial, though getting it right with the requisite testing in place may take a few iterations.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxclM9y4zYMxp-GvmDWI1NynBx0SJO6u9PNqXkBSIRE1BSpEpA9fvsOZSe7k5NnTOjD98M_FOExErVm_4fZv25wUZ9yyyGdaeZNl9y1ffcEkS4wLaLYe4KRImXUlIEFJhbhOIIs85yywpAyCJ0pY4A-TRNFBb3OJFt4SdOMuQSrJ3h7_etTp0chAU1w8ajGHgQ4wttHPvHpIqAeFS4ELkVjDwr9kjNFDVfwGF0gmJLoTWkLf54pQl5i_Mj2ab7D_kTRQTpTXl-URMXYYx8wjt9c6o09UlymbT_P6yNo5nGkLIARUISycoow5DTBEm_JXXn7_v728x_FrO84vtzQt_BDC8xAKNwF-qAw9uCgI8D1v1SsAuvNFELAPBL0yVGHQhD4RLDagyUqh1KFO7P6JPSlzqZ6NtXzz5ROBR71lpOnOVCJwuLe2JfVGQZJq364frEWaWC9QWrGKAH1o5Z3th9xSNu_OToYmIIDjpoAQTSnOBa960wO1lLC-6qdluBgwtPd_oee42Gg0stPEGPtiaMTYy1cWD30nvoTOZALa-9BFHWFkQKSUf3aTIyr3oyqlCOkAcxDxUNpaBAyD9W9NmWiLymfwFOmMsQDci6OM58ZQ9FUn5bRw0i6YrNC5tHrzU1Jkum_hYX1NkBrTIQ5YE8w4RW0UCIMdAHWMuWcomw3rq3dU_2EG2p3h-Zxf2iapt749nE41A9PO2q6fV899NQ9Hp6qwaFrHp8aqvYbbm1l99W-rqq6Oth623X7XeMq6-qdq_pdZZqKJuSwDeE8bVMeNyyyULtrbPVYbwJ2FGRdc2vHlErTsiisQcZaY1-Mtb_tgC3nILdF7Vu3jGKaKrCo_NJX1rAejl9f7V_h-20w0TkuzF-vwO-LXfbl8wZslhxarzqLqZ-NPRp7HFn90m37NBl7LGnvP9_mnP6lXo09rvbL9t4xz639PwAA__90dq-2">