<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57001>57001</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] ConstantParameterCase for references
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hedtke
</td>
</tr>
</table>
<pre>
`ConstantParameterCase` is not applied to constant references. Am I missing another parameter or is that a bug?
My `.clang-tidy`:
```yaml
Checks: '-*,readability-identifier-naming'
FormatStyle: 'file'
CheckOptions:
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
- { key: readability-identifier-naming.ConstantParameterCase, value: UPPER_CASE }
```
My Code:
```cpp
#include <iostream>
int test(int const& I) {
return I + 1;
}
int main()
{
std::cout << test(43) << std::endl;
return 0;
}
```
`clang-tidy` output:
```
$ clang-tidy main.cpp
Running without flags.
1 warning generated.
/Users/ivhedtke/.../main.cpp:3:21: warning: invalid case style for parameter 'I' [readability-identifier-naming]
int test(int const& I) {
^
i
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydVFGPojAQ_jXlpZFAKyIPPChqsg-X2-xmny8VBuxZCmnLbvz3N0VRb-NucmdqKZ3pN1-_mWHfVaecLKKi09YJ7Z6FES04MIWwgPtUWqo7R0XfKwkVdR0tL67UQA0GdAk2pKuWPtFWWit1QwWeOICh_QRGO-OB3EEgEt0PDeE7Em1ItDrPP04UY4WlErqZOVmd8I3w1b2L3xnHSbTqvFUcoDxa9KOEpTPCVoQVBkQl9lJJd5rJCrSTtQQz06JFYuh2PrnrTCvcqzspuByvJS4n8wj8s3cSb3qlQemMknRNj3DyZ74NFP4tIyvou1DDGKvEfbUW5RHBNv-B_DhR9xHenp-3L7-K1ev2FuKq3ifVi66Cr4Qu-_6yw7jUpRoqoIQXsrMOKbaEb--PSSwIB9YRtvTLsUgIW9AnwjJ_u8k3M-AGo7FaCFvTmPDJcqV6hWuF1AiHAJPLDcW6yvPmq7IbnKeFY4o_52PM897VEXSlbtGuPKIHDB6J5QW5L0-KcfvBfSXepNyc3k6NFwpvso7zy6C175kP6Q7-KrUSjQ3Ptph-CDNaG9BghIMqnIB3bxaMxad8P0DljlgDuzAMcb5G4SuOfxb7orgA-aXUWCqywkq0gPJgD9C6u29W7APMWkpJsv6-nZLNv-SePviRZPu1UX7SNIA8XiRZ5sc8qHJeZTwTgZNOQY5k7_KTbOjDRhlvevtuBYNR-cG5fmxztsPRYB6GfVh2Lb4o9T49Zr3pfkPpvOLWDuClT9IoioNDnqRpmYhltuBxzURaLvYsTkUcAy8X0TxaBkrsQVnPkTCm4YOOELhGooHMWcRYtIyWcZxkMQ8jsY95FLOa8SWbRzWZR4BJVaHnEXamCUw-UsIPqUWjktbZm1HgR7jRMEri8cWAlWXyc5UEY-R8ZP4H7HDDgw">