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

    <tr>
        <th>Summary</th>
        <td>
            [regression] libclang no longer reports empty names for anonymous enum/struct/union
        </td>
    </tr>

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

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

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

<pre>
    19e984ef8f49 changed libclang behavior in a way that breaks rust-bindgen, see https://github.com/rust-lang/rust-bindgen/issues/2312.

Bindgen relied on the empty name to detect anonymous records / enum / unions. Looking a bit deeper, now we don't support ancient libclang versions we could probably switch to `clang_Cursor_isAnonymous` and so on, but it is still probably worth flagging the behavior change in case some other code relied on that.

cc @AaronBallman
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9ks1uqzAQhZ8GNqNG4EAKCxZpq67uO1T-mYBb44n80yhvf8dEaW43N0JhkMfH35xjReY6tSOOQ4en4dSNoBfpZzTgrNKOS1C4yG9LAawHCRd5hbTIBCqg_IoQckxPynozo6_EK0REWFI6x2p_rMQ7P7NNS1Y7TSt_bO1F9l7_bH23MWaMXIh9K3ZV81Y1x9v_y60HAjrLZOSZAAHXc7qClytCIjCYUCeQnvx1pcxgqCmYCCwI6PO6Fdlb8nEHf4i-LM8mQdnEe_GModB7usAFwRADPSeI-XymUFS1RZ8ennxjiEWpNGvKzsA5kJLKXSFebNJLQaoOzdb98ZpDpPBh4_FOx0ssaiAS0GabygmYxEaIyTr3kLvw-QucnJznAlwG_wnkFlXJRcuILMZWEHfwChn8ZZdMvxzVGqquOcpA_kU6t0pf49QeDoemb4XoajPtzbgfZZ1scjhV_UvAOWAsQ1f928MIT-CIIQKfVqyK_8QS4cSQj0RKChxCTCHrxMUWRp2Dm_5zYZz7vr-e2JRP3Lb-3JV-6MRYL9PQ7ZUcBynLJe5xOPWDUf2hb7tRohqH2kmFLpZJKiE8XmCT4JrHqe0kGiHaph0a_rX7nVCdNqLTgxjaQeIzm4WrtG5XOHYU5jpMG5LKc-RFZ2OKj0XJRs0eN-OKvsxpoTDhap2lejt52sj_AgdELrQ">