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

    <tr>
        <th>Summary</th>
        <td>
            Relax -Wreorder-init-list for POD datatypes
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          pirama-arumuga-nainar
      </td>
    </tr>
</table>

<pre>
    -Wreorder-init-list warns if fields in an initializer list are set out of order.  The potential bugs are always related to initialization order of non-POD fields.

There are numerous instances of this warning in the Android codebase and majority are for POD types - drowning the few cases that need to be fixed.  Secondly, due to historical reason, one of these POD structs has different order of fields for 32-vs-64-bit so it's infeasible to fix these warnings in a reasonable fashion.
 
To make this warning more useful for Android (and maybe other platforms), can we relax this warning for POD datatypes?  Another option is to possibly create a sub-warning that only warns on POD types that can be disabled in Android's build system?

(cc: @enh-google @ZijunZhaoCCK @AaronBallman )
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsVMGO4zYM_RrlQjhwZE_GOfiQnUEuPbRoFyiwN9qiYk1lMRDlzbhfX0jxYHbRvdgQSD4-vicKRdw1EPXq6Yt6et3hkiaO_c1FnLHCuMzLFauALmDcDWzWvvo7EkdDsXLBpco7SXDHGAScBevIGwEXAAPkuEPv_qUIJQ0jgVACXhKwhYKyB_g6Edw4UcjZMCxXKZno77gKRPKYyEDiT0BMjsOjPgMFDtUfv79u3feqflX1-fH9OlGGigRhmSnykslJwjCS5NI0OSn0Xbhm2mkiOAcT2RkY2dCAQoDBwIxvHF1aC5blCLlhWm8kUIGJfC8IudzSHUYUEkgTJgj0ID8QWPdOZg_wF40cjF-VfgGzUI5OThJHN6KHSCgccowDPTiSUOknKS5jEphQwDhrKVJInzps6md2ja6-S3Vsq8ElEAaXlH7Os1tCcYMvTa1738A3BR7ObQwwZ1mUyXHYNIVNVIYZ_6GfxZs5EixCdvGFwYeKSncP_daBgNNEEW4ek-U4i9KnPOeIAe5UnH7_GfRDaIMJi9iquQCcwwOHb-UeOMnD3FjyYCuMkTARIMgyVB9AxQoOft3uKocfDCzBTGIgME7y4CYrsY1QlBsW5w3IKolm1Vx-vGNKd-OomjOotqYwVVfmq6d8-ubelvBtQn55-S2fzxg5fEHvZwyg9Gln-sacmhPuqD88189d27X1027qbWtPI5IZn3E8dURo9dDS6dDU9kR0aHeu17Vua31oDp2u66f9sT50x87g8WkcjtZg5jKj83vvv897jtedE1mo7w7Httl5HMhLWXqtA92hBJXW-Q2Ifa6p8iKqts6bK58oySVP_Z_Fql89Bf9zbLdE308p3UQ1Z6UvSl-uLk3LsB95VvqSkbdfdYv8RmNS-lL4iNKXwve_AAAA__9FGphH">