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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] False positive bugprone-exception-escape for throwing lambda in noexcept function
        </td>
    </tr>

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

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

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

<pre>
    https://godbolt.org/z/1sf8Gne35
```cpp
void awoo() noexcept {
    [] { throw 0; };
}
```
This outputs
```
<source>:1:6: warning: an exception may be thrown in function 'awoo' which should not throw exceptions [bugprone-exception-escape]
    1 | void awoo() noexcept {
      |      ^
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMUtuOmzAQ_ZrhZZTIjHEIDzywm6U_0B_wLeDKsRE2SbdfXxHSNFqpUiUkRp7bOWeOTMkNwdoWxBuIUyGXPMa5_XDJhpu82kJF89mOOU8JeAfUA_VDNCr6vI_zANT_AurLdD5-C5YLYB0c2PbpaQLWXaMzKG8xAh2BGgzR_tR2ygj1G7AOEXFbvT5gHud4Qwb8DaE-AV9L1uBlLLDu--gSxiVPS05fUsDfU1xmbYF_AO9K4N0BeIc3OQcXhjWUATcILga8yE9Udtsb0AU8L0HfM0D1BrvG2-j0iGmMizcYYn7AfE5JKwW1DNMcg909n3c2aTlZEKcH0RKhfsf_UATvhVsgPl4pFqblpuGNLGxb1hXVJETFirGls9F1qZumaejID2VpGlUpxsmSOJeiKlxLjATjxEtGomJ7oUgdmVRa1VQb00DF7EU6v_f-elmPW7iUFtuWnA5MFF4q69PdJ0TayzDssjOfQLT6Zm7Xrp1ahgQV8y7l9HdOdtnfHfbSJk7YS58sTjG57K4W_ykgnuO8Se7CgF5elJHrqZ7C_blZscz-q1ddHhe11_EC1K-AHr_dNMcfVmeg_s4yrS7eiF5b-h0AAP__7Ofzcg">