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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] No space between the case and the expression if C-style cast is used
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          Frenzy-Alex
      </td>
    </tr>
</table>

<pre>
    Hi,

Found this small mistake today: there is a missing space between the 'case' and the expression if C-style cast is used.

```
struct FullId {
    explicit constexpr FullId( uint8_t in_group, uint8_t in_id ) : group( in_group ),  id( in_id ) {}
 
    explicit constexpr operator uint16_t() const { return group << 8 | id; }

    uint8_t group;
    uint8_t id;
};

constexpr FullId FullId_A = FullId( 0, 0 );
constexpr FullId FullId_B = FullId( 0, 1 );

void someFunc( FullId in_fullId ) {
    switch( (uint16_t)in_fullId ) {
        case(uint16_t)FullId_A: break; // <- should be space between case and expression: case (uint16_t)...
 default: break;
    }
}
```

I'm using integrated clang-format in CLion (2023.1.3).
Built-in clangd version: 17.0.0
LLVM revision: 22d98280dd8ee70064899eefb973a1c020605874

I'm attaching clang-format.txt if needed.
[clang-format.txt](https://github.com/llvm/llvm-project/files/11973340/clang-format.txt)



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVEuv6yYQ_jV4M4qFIbbxwos8ZPVKt112GxGYxPQSOwJ8Hv31Fdh5nHNur9oowjYz8803H8NI7815QGxJuSXlPpNT6EfXdg6Hv99XG4tv2XHU7-1vhrAdoXtCN_PajdOgIfTGg79Ia-FifJA_EMKo5TvhGwg9OgTjQUabN8MZ_FUqhCOGV8QhOgBhtZIeCatBJjwEfLs69N6MA5gT7FY-vFsEJX2IYJNHnT8TIRVd_unTBzepAN1k7TcNpN7O2wAQga1RJoAaBx9imsWNMAGTGYI4BDDD4ezG6UrY7nnPaCCsgVjXYhZ312iJ7mD0sn3zrrek3i8EfsljvKKTYXQpZVEdAmEiIiSPiAMOw-QGWBLyHeE7EEDqXczKt3BP9Mhzoz8T5tuvlhS6hNX7x3taP6u0PA4bIHz_pByNtdMkwg3g30K3PwstPoTO68toNPjxgt00qOi54JjhcFpOdtH3XpN_NUH10Zcw8ZCx-UVI_M3d9xxwKzOe9dGh_JHkZR1hXRR-Bb4fJ6vhiJ_6OUKlLn50cMRI2x9T5PnSwqDxJCcbnnM9-D3O9P7ysdnn9Rth9QWmdMPMEPDsZEANysrhvDqN7iJjC8Pue7xShAlGGc-LnEciM8J2MjaszDDHaHhBd2Nf1DnNl3Tfv__5Ozh8MTcjY7oRTFCtBWJNabUWTYN4OjY1l4WijFa0FPX6K1sZglR9ZPxMMw9vIV76AVE_rnm5_exDyj1hog_h6gnfzGdzNqGfjrkaL4R11r7cHqurG_9CFQjrTsaiJ6wriqbmfE0J674gs-bDcElrpluuG97IDNuiEqISoiho1reKyqpQqixVIRQ2nOumOJW0WcsTqyViZtooNq1pTSktSppXVBdVWbFqrRquFSNrihdpbB6p5qM7Z8b7CduK14xmVh7R-jSbGRvwFZKRMBZHtWtTecfp7MmaWuODf6AEE2wa6s8FknIPf4w_mcL3zv1v8zebnG3_t_qJe5Q_1fZPAAAA___SgvMp">