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

    <tr>
        <th>Summary</th>
        <td>
            -Wdocumentation confused by `\f$` at start of parameter description
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    Given:

```c++
/** @brief Some summary.

@param param1 input image.
@param param2 \f$3\times 3\f$ transformation matrix.
*/
void warpPerspective(const void* param1, const void* param2)
{
}
```

gives with Clang 15.0.6:

```
% clang -Wdocumentation -fsyntax-only test.cxx
test.cxx:4:13: warning: empty paragraph passed to '@param' command [-Wdocumentation]
@param param2 \f$3\times 3\f$ transformation matrix.
~~~~~~~~~~~~^
```

It seems to not like the [`\f$`](https://www.doxygen.nl/manual/commands.html#cmdfdollar) command being at the start of the parameter description.

I'd expect it to render to `3×3 transformation matrix.`.  Which it does [here](https://docs.opencv.org/4.x/d6/d91/group__gapi__transform.html#gac0cc729169b973fb0a8bb6f01968b357) for example.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE2P5CYQ_TXlC2oLgz_GBx96utPR3iLlsMcRhrJNYsAC3B-X_PYI9_RkZ9Sb01oIF-WCeu9VYRGCHi1iB9UrVMdMrHFyvgsorMl6p27d7_qMFvge6BHoY67pfUhgr2ncvewEbA9sT6Ckvdc4kD-dQRJWY4S_5Z9OKOkivDBkmwui7bJGoo0YMX8WwQhUhwFYyaE6RG0wEP7uIdELGwbnjYjaWWJE9Pr6OIVtsDb77LQiF-GXP9CHBWXUZwT2Ip0NkaSPCfodD7ADeeJnwNr3c5sH6eb4RZMfaY76jIFcdJzIYRZ2JEWV07z-mZwPzBWRW_Tuu3JyNWjjndpuCDcbxXXn7HwjEUPM5fV63_Wx4vsS-L7gwPeJrdV2TCaaJd42GqMXy0QWEQIqEh0B1jzEBtYQ6YwRVhGoXr_kh-r4K2vzzw8PVL_9j4zfIgmIJiS01kUy67-RxAkTxhR6T7ZZR2AvU4xLSBqnhjxdLpdcuettRJvbGdjJCLuKZLwzDfkUzQyMS6MG5eZZeGDthw49ajsSEbeEIQofiRu2xcYeI3qiMEivl8TxU5t_A9YogtfUbUTHhN-jVeg33WvK4cChbfjPdKppTsj3Scsp7VYOQ6I8ocdnTJWTIXcLWnnOnR-Bncr8mvx1mtoC2Gn0bl3e3kax6Le3j6QPAUYhqZQNa4u67duGDz0VL31fD7Ro65eeV00SZnCe4FWYZcY8Ux1XLW9Fhl1RN7xsqrJssqmreC9lwThWqm5FWbSyUFIVqpRtVbeKZrpjlHFaFAVjRcOanBZ9w2QvalFSWRYtlBSN0HM-z2eT-GQ6hBW7qm0rms2ixzk8flu-S0G7fh0DlHTWIYb_tkUdZ-y-3iXp7LCmG9DfyKceSqX-KPPTEmern7vP0o86TmufS2eAnVLm99du8e4vlBHYaUMfgJ02Av8GAAD__1OEsGc">