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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] modernize-avoid-bind suggests incorrect case style
        </td>
    </tr>

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

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

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

<pre>
    **[modernize-avoid-bind]** produces the following warning:
```
warning: prefer a lambda to std::bind [modernize-avoid-bind]
  auto boundCallbackBind = std::bind(&foo, std::placeholders::_1);
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                           [](auto && PH1) { return foo(std::forward<decltype(PH1)>(PH1)); }
```
(to the best of my knowledge `PH1` doesn't follow any standard case style)

However, when this change is implemented, **[readability-identifier-naming]** produces the following warning:
```
warning: invalid case style for parameter 'PH1' [readability-identifier-naming]
  auto boundCallbackLambda = [](auto&& PH1) {
                                       ^~~
 pH1
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVMty6zYM_Rpog3FGIq1HFlrEcTxZdNE_6EAkJLGhSA1JxeMu-u0dyW6ctPe2d3E5HL0gHBwAh6AYzeCYWygPUB4zWtLoQ_vmebBZ5_WlBfG07vIwec3BmT94R-_e6F1nnIbyeLXjHLxeFEdMI2PvrfVn4wY8U3DGDSCfID9C_gRVftvb692Mc-CeAxJamjpNmDzGpFdH-bSGwv-gsGEh0pI8dn5x-pms7Ui9HTZHefwKBaIBUfXeg3i-W2ZLikdvNYd4_fJbAeIR5OGGD-XLnz-y_qbz3XWtNYhmIwyiAlHhr69rNIT6gIHTEhxuBJsPfr0PZwoa5LNmZdNlZhDN1Qvky_15o4xQH79ZcRBN8luTOo4JfY_TBd-cP1vWAyNU-QpT5ag9RweiTrduIrkLxkROU9CoKDLGdLG8xrsib9dXf-Z3DmtlzyM7TKOJqEZyA6OJaKbZ8sQusV5_-RBXYNLUGWvSZWc0u2R6w2HnaFrl8fNUZtw7WfOZP_Y-4EyBJk4cEES91bHGH2H1XeH9chXxKr0v3f5Xs_9XLF-F8_Ihr_m1-EeymW6lfpSPlHFb1HmT50VTyWxs90p1IqdCin1ZalUJRbpvJO072Snq88y0Ihf7XBRlIcp6Lx9kzWVTS6ll0dRFJ2Cf80TGPlj7Pj34MGQmxoXbpmhKmVnq2MZthAihLLlhl4y-gBDrSAnt6rTrliHCPrcmpniHSSbZbfh8ciuP-K2DjnEZBo4ponHKh8AqfWpjtgTbjinN29kVJxCnwaRx6R6Un0Cc1oi3224O_ndWCcRpyyKCOG2J_BUAAP__bGyK9g">