<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/123646>123646</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] readability-named-parameter shouldn't comment out parameter names in function declaration
</td>
</tr>
<tr>
<th>Labels</th>
<td>
enhancement,
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
LegalizeAdulthood
</td>
</tr>
</table>
<pre>
Suppose you have the following declaration:
```
static void transform(DblCoords *);
```
when readability-named-parameter is run, the code becomes:
```
static void transform(DblCoords * /*point*/);
```
Since this is a declaration, not a definition, the parameter name should not be commented out.
To reproduce:
1. `git clone https://github.com/LegalizeAdulthood/iterated-dynamics.git`
2. `git checkout 784b6062108a0d56d2e84313e975a5b04981d62f`
3. Configure with cmake, e.g. `cmake --preset default`
4. Run readability-named-parameter on `loadfile.cpp`, line 175
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUk8uK8zgQhZ9G3ggbWb4vvMifkNWspucFylLZ1rQsGV3SZJ5-kJMmPdPQ8IPAULiOvjp1BN6rxSCOpPlFmksGMazWjX_gAlr9gycZdVitldlk5X18i_tuPdK7jXSFG9KwIp2t1vZDmYVKFBocBGUNqU6EHadlz8NOPkBQgt6skjQ4MH62biO8v0z6bK2TnhJ-Inwg1a_vzR8rGuoQJExKq3DPDWwo8x0cbBjQUeWpi4bw80ElrEQ6obAb-ifM75JQwq-En3arTDjAri-2L1pvyojkhPIJAf7jAj9TY8NRnJVRn7UE-AJPg1C_2qjl8feU6LcNTUBJbQzFw4y_LHW4OyujwMdEZUFJyxYVqNDWIF1D2I9hE-l1UWGNUyHsRvj120IJv6qADgLKXN4NbEr4YlHhMRN_Ka8o3m0MtOvrqWUtL1kPTDat5NjXVVnh0DXQTKwe-lK2fH4IVAU9WzOrJTqkHyqsVGzwjml4LJZD_SjQPN8degzJIYj6eX9d0D_jz-u2JoloC3JWGgux76mVn6lWBmnZNYSdMjlWcqgGyHAsu6qrhoq1Q7aOA84S66ZkoulE3XZV2csJpx6AA_aAmRo54w0rOSu7smRD0XT1gFPN-ACyb4eB1Aw3ULrQ-rYV1i2Z8j7iWPKqrdtMw4TaH6-KczQrGIFpo4Rzws-Ec6HBLHlQ8p5KzSVzY1LKp7h4UjOtfPAv7aCCPt7ol7bm8qM_j0AZwrvwGacUpv_lzlNl6ByNSNH8Gt0sOj3-EKiE9vzku7N_owgpUskDT_j1acNt5P8GAAD__wyGaKc">