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

    <tr>
        <th>Summary</th>
        <td>
            clang-format ignores `clang-format off`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    Format this code with `SeparateDefinitionBlocks: Always`:

```cpp
class X {
  // clang-format off
#pragma warning(suppress : 4373)
  void foo() {}
  // clang-format on
};
```

Result:

```cpp
class X {
  // clang-format off
#pragma warning(suppress : 4373)
  void foo() {}

  // clang-format on
};
```

https://clang-format-configurator.site/, v18.1.3
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMksvO2ywQhq9mvEGx8ODYZsEi-SNfwN9NtwSDTUuMxeBE391XzkHN10pddVGJgzSC533noIn8OFurYH-E_anQa55iUmeb6LWLcxw-VB_TRWeWJ0_MxMGym88Tg4Z_sYtOOtuTdX722cf5GKL5TiAO7BBu-oOg4SAOwE_AX2fDH8ssyyNigiZiXxm0x0eAMcAesGcm6HncuYd8dO5JQLEkPV40u-k0-3kE7GhdlmSJ2CZdi1YAyhfsGv3AXIyAHaC8y7SnPyrNT6H2BOL4i-33XP63tIb8Lyf4V9Kccl62nj4g74ydibPz45p0jqkkn-39zX_sWnVlVYpiUGKQQurCqqrFPXZVJ2QxKY1orBVY752onNPO1Rwbwbl0YqilKLxCjjWXHCvct5UsHZpOGzcMnbF123Goub1oH8oQrpcyprHwRKtVFW9kJ4qgzzbQfbQR3y0D4jbsSW3_dud1JKh58JTpJyn7HKz6VCw_zjFZ2qb-t6Y1vFhTUJ_LNPo8refSxAtgv5Gf125J8Zs1GbC_GybA_un5qvBHAAAA__9mYAux">