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

    <tr>
        <th>Summary</th>
        <td>
            usage example in CommonOptionsParser.h won't compile
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The usage example in CommonOptionsParser.h [1] suggests
direct use of the constructor `CommonOptionsParser`, which
however, for arcane reasons, is `protected`. Therefore the
usage example won't compile.

[1] https://github.com/llvm/llvm-project/blob/7022a24771c8404f847abb226735a3ae21794426/clang/include/clang/Tooling/CommonOptionsParser.h#L42
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUsuOnToQ_JpmY11kGgOHBYt5iNWVksX8QGMa8MTYyI85yd9HnDNRHppFsrGtaqu6q6soRrM65gGaR2ieC8pp82F4veaUvnAx-fnb8LKxyJFWFvyV9sOyME48-X337tORjHfxM4XIodwENI8VNM8i5nXlmCLIZ5APswmsk8iRhV9E2lho72IKWScfBLTyAzJoJeCTuG5Gb3eWzV_5jcOJLj4ICpoci8AUvYsnauLJdQSfWCeeoZWleNk48OIDn23vPL9LuXoH2CWh_X4Yy-X9z_v5rmZL6YhQPwCOgONq0panUvsdcLT27cf13xH8K-sEOE7WT4BjJxEJVddV-qKkWi6qo2lCbLu6oZoYq65XClvAUVtyK-BonLZ55l-QF--tub0-XDlg_b_CYh7qua97KnioOlnLtmq6ptgGrLlXC1V0VvsFJ557Nfdy6Wjqm5YKM6DEukKU8lL3dVP2JGmhatEzV_oiCZTknYwtT42lD2thYsw8dK1EVVia2MZbehAdX8WtCIhnmMJw28uU1whKWhNT_MmSTLI8_GWu_nCpyMEO_-zKbbR4-nKO_j0AAP__DzD3Sg">