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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy][readability-identifier-naming] specify casing for const-reference parameter?
        </td>
    </tr>

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

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

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

<pre>
    `a.cpp`:
```
#include <iostream>

void func(const int& a, const int b, int c) {
 std::cout << a + b + c << std::endl;
}

int main() {
    func(1, 2, 3);
    return 0;
}
```

**I want to specify casing for parameters `a` and `b`, but not `c`. How to do this?**


```
clang-tidy -checks='readability-identifier-naming' -config="{CheckOptions: [ {key: readability-identifier-naming.ParameterCase, value: UPPER_CASE} ]}" a.cpp -- -std=c++17
```
catches all parameters.

```
clang-tidy -checks='readability-identifier-naming' -config="{CheckOptions: [ {key: readability-identifier-naming.ConstantParameterCase, value: UPPER_CASE} ]}" a.cpp -- -std=c++17
```
catches only parameter `b`, not `a`


```
clang-tidy --version
LLVM (http://llvm.org/):
 LLVM version 15.0.7
  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: skylake
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVN2u4yYQfprJzcgWhthOLnyR2CfaSlv1qNX2doUBOzQEIsDZTZ--wvk5Z1fR6V1VycIwzO83H8ND0KNVqoFyC2W34FPcO98Yf9ZSiYMOi97JSwMV4bk4naAiwDZAOiCbtL9-1yNl2gozSYXAWu1C9Iofgb3cruf17LTEYbIC6Eo4GyJqG4FWyIG2-JBgn45pI4CuEert1RxDlCk-2wg3xRQHWIscgW6xn1dxFz40lZUG2M0B1N37dFKEI9cW6OrHOIj3LIuUCU0LA7p-OEoaXsXJWyRPvP8EzQ2g9P2C37iNGB2GkxJ6uKDgQdsRB-fxxD0_qqh8wIQ4VAS5lWnfJ2e0xX6KaF1MIgEVyfGT-5acSYdxrwOw3TXMD4Gf5SQMt2MWtbxgJvZKHAKwDmjtFZe810bHS6alslEPWvnM8qO2I9AaM-HsoMdZm0K9bZPxb6eonQ3ANgjlNgF5UJd0-tBd_nqvt-VBpfLO3Ewq2X15fX35_Wu7-eMF6g6h7BK2lOLMQswyzOYGdwLoFui2qJ8XyaPYq4DcmHfY5v93WNr0DriN_xU8zprLGz7v6XajGv-Zyv8GXXZWPmhnrzefP__5KwJd7WM8pUdJd0B3xpyPufPjfFo_pgrOyjdzLMqc5PX9ySU4j_pvJbGftJH5Xd6pgU8mYuR-VDHh831Vfa2W2UlkRtvpezba6a78yYWI7euXpBYOF8MP6mk5C9kwuWZrvlBNUa1JVZKC1It9U7NhXfZKFJSzXkjG64GXlJRMrodiKdlCN5RQRmq6LmpSLOt8UAMtGJW0rpd0JQQsiTpybfI7BgsdwqSaakkpWRjeKxPuA9k3SSnrpzHAkhgdYngzizqaeXS_YZ-4UG4_pmvZPRs-8_TNvBqUV1aoN0IA2y0mb5rUvvDo36jjfupz4Y63Zt5-2cm7v5SIQHdzVQHobi7snwAAAP__cN7g4w">