<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVE1vnDAQ_TVwsUBgvAQOHLJNVq2aqlW7ybUyeAB3waa2yXb76zuGTTaR0kNVycLMvPHMmw-71uJUBSx5z39zI04f1WwnMAc42IC-Ix9Ipx2xegQS5ImBn7M0YPE3MjBwB4I0htseLDn2oEirzcidk6rz5nEzTbiRVg5oMCsBxqubgasuoDsH1uHmDckWBn0k0hKtMBItjr1seoxuQMwNRnGauB5IzQ2QUSo5zmNAS6Jbrx6D7DpIboLkGn2d1ypSRhruSLyEjFZ2K7TlFsRn9c2dBsDj5O7u4dOLQy_sSRQ9grFSqxV_hZ0Rkm7iJE488965yXpCmBndddL1cx03GunuhuHxaYsmo39A48jVFeRJ3TDasALSXOQsZ0UhWEbTpE7zLGkEEzUrMdu36T1pM9mS57QzGCysQqs1svLHs-0FVkK2q4QlRfy5sy_srq0F43x2LccOCl8mNP16Nt3rA6goyG47cPvTBGsUEmQ3uMh-__1eHZQ-Ku8SJ6mdVbM4m7ix8OTk9teE36W43gbDkHt1NHyaQNxJBV-8sVkGCfEBNSRLKI1XhnEcv9n3UFSZKLOSh3x2vTaVPoJqeDibofq3_qAorZ19YXYblqRl2FcbEGlbtBlcMVbwFmDTtEle5hR4kQqWhwOvsf5VsNkGlNYzzjr17HF71biL1l8hL25uwv8nKCuKFcKVpWmap3mc55xxWhYsKVL8SfGyw4gdjb2fWJsuNNXiEqlaBAdpnb2AHNvTKYAlH2TopBugenUL_voGUHoZLEq46eYRlCO8df4p8DMbnYc1XLKolhT-APDTbHs>54019</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format crashes when formatting "requires" argument after #if-#else
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            clang-format,
            crash
      </td>
    </tr>

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

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

<pre>
    @HazardyKnusperkeks, I got some `requires`-related crashes when formatting `.cpp` files under `clang/test/`. Below is one (which I reduced to the bare minimum) of them:
```
$ cat .clang-format
BasedOnStyle: LLVM
$ clang-format --version
clang-format version 15.0.0 (https://github.com/llvm/llvm-project 77e60bc42c48e16d646488d43210b1630cd4db49)
$ clang-format
#if 0
#else
foo();
#endif
bar(requires);
Assertion failed: (RequiresToken->getType() == TT_Unknown), function parseRequiresExpression, file UnwrappedLineParser.cpp, line 3022.
...
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU99vmzAQ_mvgxQoCmxDywEOzNtq0Tpu2dK-TsQ_wAjazTbPsr98Z0qaVuodJFsfdfb777odrI89VlKfv-R9u5fmjntwI9ghHF9F35ANpjSfODECiIrXwa1IWHP6uLPTcgyTCcteBI6cONGmMHbj3SrcBnohxREEa1SNg0hJsMIue6zaiew_OowhAsoPenIhyxGjMRMtTp0SH2S3ISWAWb4jvgNTcAhmUVsM0RHRLTBPMQ8RuovQ2Sm8w1uUsKs2J4J4kc8rVwm5x7bgD-Vl_8-ce8Dq5v__-6cWlF3iyWj2Cdcroxf_Kd_GQbJ2kSRqYd96PLhDCyui-Vb6b6kQYpLvv-8cnsRqt-QnCk80GirQWORV5CVkhi7zIy1LmjGZpnRUsFTKXdb7Fat-m92RlqiHPZTPoHSxKYwyyCtfZ7urWUjWLhi1F__NkX-BunAPrQ3UNxwnK0CaEfr1AD-YIehWxuxb84TzCkoVE7BYPORx-POijNicdQuImNZMWc7CRWwdPQe5-j_idmxswmIY86JPl4wjyXmn4EsB2XiT092ghLKU0WRgmSfLm3GNZMbllWx575XuoXo3snwtL6bULlHDbTgNoT3jjw96GBq8unY0n21f_N2hUlXNTiL1f52m2jbuqKVi5gVxQuskbIdeCCVawDDZlQyUvZdzzGtNV0XqHjOoJHw0NbUDxagOu1lBaUNe3saooNgoPy7KsyIqkKHjO6bbM0zLDnwzfPAw42CTQTIxtY1vNjDGRQ2evnHdXJ8cptRpgZoPx-eQ7YytzAi14PNdWzYX9BdtYVtI">