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

    <tr>
        <th>Summary</th>
        <td>
            add option to limit `misc-const-correctness` to POD types
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    `misc-const-correctness` might expose cases where a variable is needlessly copied and the code should be modified instead of the variable made `const` (thus also hiding the pattern from future checks/reviews).

But this would not be an "issue" for POD types so I think it makes sense to add an option which limits the check to just such variables.

I am already on my n-th review of all the warnings now and I just realized that I could have already applied the changes for POD types.

CC @JonasToth 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U01vnDAQ_TVwGWXl8LVw4JBkVWl7aQ_9AwMesBNjI9vsdvvrO2aTVLlUQjb2zLx57w0MTt76rBGLDuPD6GyIvHpPY7QUAgdg0bOKQL9XFwhGDBTgqsgTIFzQaxwMgQ5giaThEnOD0a2aJKCVEBXXOEkQlNuMhIFgcVJPKa65GaEEN-1pn2ALcj533tkkBlnRRrUFQBMcKC21nfeKFWMkb2HyboFpixuTGhWNbyErvnm6aLryW3fIxCkTT_f1eYtcy3yvOx_rYuKElpsUOoSNeIfJefj54wTxtrJabnpONfYNdGR2b-mOLLsRHaBMQsGtUTvLxuhRgdGLjuGuPdFJea9biBA2jn7oDF94nQEXFujZkBsw0nID-xAV3GUkj9CYHfKK3rID7Li77h6f7-BcavQfSp5j5MtxF6jwQp-4uK5G0_tUFNqZlXzR-oXSywtklfjuLIZfjqnk1D82TVU3RVl2uexL2ZUd5lFHQ33y4d0EVrs7AP_9rDjrs22-edOrGNeQlU88O35mzSMfDqNb-GDM5WN7WL17ZRg-7uNKo65b0Va56keSx6Gb8Cg6PFZtUY3lkWQhKzE0hWjb3OBAJvRZ_ZzVp1z3hSgK0ZXisS3qsjsch4q6QbaNaERV1DWrpwW1OaTGB-fn3Pc7h2GbAweNDjH8C2IIeubf4AMft6ic7yft6cpTyHe-_U72LwyFKgw">