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

    <tr>
        <th>Summary</th>
        <td>
            parameter types are not renamed when fixing readability-identifier-naming.TypedefCase
        </td>
    </tr>

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

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

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

<pre>
    Using clang-tidy, I try to rename typedefs, and find that clang-tidy fixes the header and variable declarations, but not parameter types in function signatures.
It is similar to this issue: https://github.com/llvm/llvm-project/issues/47147
I could not find other open issue, so I report it.

Using clang+llvm-12.0.1-x86_64-linux-gnu-ubuntu-, working with c .h and .c files.

### .clang-tidy
```
Checks: "-*,readability-identifier-naming"
CheckOptions:
    - key:      readability-identifier-naming.TypedefCase
      value:    'camelBack'
    - key:      readability-identifier-naming.TypedefSuffix
      value:    '_t'
```

### test.h
```
typedef struct {
    int x;
} ABC;

```
### test.c
```
#include "test.h"
void fun(ABC a) {
    ABC b;
    size s=sizeof(ABC);
    ABC *c  = (ABC *)NULL;
}
```

is rewritten
### test.h
```
typedef struct {
    int x;
} abc_t;

```
### test.c
```
#include "test.h"
void fun(ABC a) {
    abc_t b;
    size s=sizeof(ABC);
    ABC *c  = (ABC *)NULL;
}
```

Type of parameter `a` not renamed.
Type ABC in sizeof is not renamed.
Pointer Type ABC*  is not renamed.
Type ABC in cast is not renamed.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFVdtu2zgQ_Rr5ZSBBpuSLHvQQ2yg2QLAt0Oa5oKiRxTVNGrwk8X79DiUldtJssGixqCDL4vDMnMMZctSY9lzfO6n3IBTX-9TL9pywLdyCt2fwBixqfkTw5xO22Lk4x3ULnaSH77m_8iPjEzqyIvTIW7QD8oFbyRuF0CJBLffS6CFMEzxo4-FExiN6gkcSB1JDF7SIOHByr7kPFl2W5Lskv7n1IB2Zj5JiRX2-p7F0LmBS3EDv_cnRS8I-0b2Xvg9NJsyRBko9PP-lJ2v-QuFpOHiSnE_lal6uJg4QJqh2EDes09CSLJgT6omJ1DtDObJ4MpYU-Und-LzKZ8I2A-GcZXk2T5_Wy-_LMlVSh6d0r0MamqB9SGPAR2MP0e-RRIOArB-ylwmSoF6WPz1ZMd40fanaOLXMp3sYbnsUh5gQSBgjGnLdWqoNb6SS_pzKFrWXnUSbUpllFMyuPD-fxmoVEzHQlcIBzzHicH0YLPs27potd3gJALQl1FguuhK2ElR-teHiQO-_xPM1dLQFP2D67l8o3iTqbWI9Op_170KnowDO2yA8JKvNhVFqD09JMVmS1Q5uNtvL-F3m15zi30BSCxVajIWcxD2X6sHINh6ZhK2JDXjCqteqorV5UREtTv6NQHXdxRfTjZ7k9woU3WjLCEpdsYMp-rCHqj_v7-6ul_lBTul4Wny00nvU_1uWeSOotr87z4OK35fpeArAdFcNlQCcfkMnGxt5m11hI4vUMCqLffVH3BdDyaZIz3gSBe8jryMK7vz7qFlbF21VVHzmpVdYv23-3OK1Fzz21HTpUMfO-J97zSxYVf_8p2BRLqtq1tc5rstiuS5Wy3W-6KrFsmsQ53PWIXYlCjFTvEHl6mSxSRa7maxZzlhe5vN5WTJWZpXIqzZfNKLAZbOuVkmZ45FLlUXizNj9zNaDhibsHU0q6by7THIXv36Iz_F58L2x9V04cPcH16hmg-J6kPsPS_VHTA">