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

    <tr>
        <th>Summary</th>
        <td>
            make the default `misc-const-correctness` mode optional
        </td>
    </tr>

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

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

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

<pre>
    Thinking in the terms of #58084 the warnings from the optional `misc-const-correctnes.WarnPointersAsValues` can be considered "safe" (to be applied without any review) as the fixes apply apply to local assignments only and might not mask patterns of unintentional copies.

As the default warnings (currently) include "unsafe" (which should be reviewed) cases and also lead to a different kind of fixes it might make sense to be able to run these checks mutually exclusive.

CC @JonasToth
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1kk2T2yAMhn-NfWE2468k9sGHdHf20FMPO-0Zg7BpMHgQJJt_X0HSyfbQGZsvgfQ-kiYnb-PHou1Z25lpy8ICLIBfkTnFiqbd91Xf5dMr95YuIVPerfnEbUE7yw0rDtWqUbwIZzHQ6D2IYAF3v-jND6ctecQT_uQmAtJlJrhlE7B0X0vwIClUg1wBTbTsg0tmvm1Gk-2qw-JiYNzemIeLhmvRDIxjFqH0J2C-enuM9Ng4QbI4op7tCjYQjU12K9mq5yUw6wJbOZ7ZxgOJsxk32qTUPqCE2zQhFNVbUZ3u4-keUoLi0YRnRkixiARtg7kladoKEyUkqGi_YF0XLRaGBGNkArzDgExvBMfEQQq5QSIALhMJZ1IrBck3oxrJpPOOrMODZeVnYAgWgT3yNpm89DHXk87FAuKMbI0hckOJgE8SiPoC_-C9vrKiq74TPX64sJQw1odDd6j7odqXcmzl0A68DDoYGHPQr8n4Xw_keq9OPtuljN6MSwgbFu2paN7pm6nCcdoJt9LGmMvf6WXz7jf5oa1GTM3TvFNHDl25jL0Ux6GeBiVl3VXiII_1NEHTDvXQq1bJ0vAJDI7F_hul38KVZRe0LvZvpR6bqmnqqqrp75v9ruVCqWNfdZPcHxs5UCZg5drsko6d83PpxyxpijOS0WgM-DTeew0ghyP_PFLP-lFpD1d-gTLHHrP2P9VfLBM">