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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy doesn't apply fixes for bugprone-argument-comment
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          sean-mcmanus
      </td>
    </tr>
</table>

<pre>
    I'm using clang-tidy 14.0.3 on Windows 11.

Use test.cpp
```cpp
void func1(bool foo);
void func2()
{
    func1(/*bar=*/true);  // variable name is 'foo', not 'bar'
}
```

and run `clang-tidy.exe --config="{Checks: 'bugprone-argument-comment'}" --fix <path>/test.cpp --`

Bug: The result has the warning
```
warning: argument name 'bar' in comment does not match parameter na
me 'foo' [bugprone-argument-comment]
    func1(/*bar=*/true);  // variable name is 'foo', not 'bar'
```
but no fix is applied. Using --export-fixes doesn't work either.

The docs at https://releases.llvm.org/14.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/list.html show bugprone-argument-comment as having a fix, but none is getting applied. If there is some reason the fix isn't available, it would be helpful to be able to discover the reason somehow.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VMFuozAQ_Rq4jEAEQkkOHNpmI_W-1Z4NDOCtsZFtkvTvd8Yk2bbaXhdFGHs8z_PePKcx3Xv9EuXVBIuTeoBWCT0kXnbvsNmmWVqA0fBL6s6cHWw2aZQdouxxfb86BI_Op-08X9cfsvV3XzkZ2UG_6HYT5bvGGAW9MVG-j4qnLxty2sCBFai6hoGeW3qUH6P8sRE2Kg70QVNvF1zBAEL0CCdhpWgUghYTgnS0XoUjqyh_Bm08LzAGLVyPOnwp_iNHoTuwiwbmdJcmxQtCkrRG93IIxeRU8POI7ZuLisdwwjLM1mhMhB2WCbWn3ROPfG7FGQTQywtExfMs_BgVP5jPVU2KfanjaRkY-eeIYNEtysMoHHianoXV1Ll_crjFKPNWx6rLXQOQGq6VQWfQBYUm4dsRZmFpq0dLKSvcmriqCVH59D3J8vDf2veZcbMQQwOsLCWLeVYSuxReg7mTBC-zsZ6FJ6rMVxOQh7Oxb4CS5LSfHM5yd6YlINLb-5m7uxZqUaFw6FKlTlNq7EBr4cJkzIt87mgMjvkwx4u3gkaGvIWDoXiyuic_KkkeGP2kwI3mDN9qDNT_UZyYl2C-rM_KXgfhBvQ-BG8avPTsFxuCzkxsJOHodrOJVr1WMcRJSMU9YETJ4iyqgwZhRDX3iwJveBa6RJ-ddK05kUv8eIdkeCr-qmXc1UW3L_Yi9tIrrD_8x_xtAZf5DmtjemO_5x0vVtWfmzFQ55YmpQ2sHzXkOiSE8BtbunNH6dyCLG9ZllUWjzU2ZdXv277diu6h2TUCi81u2-dNn226otzFJAEqV5PN6bJqPEOA4KteHmJZ51meZ-Vml2fbfLtNy4dqj_m2eNg0XdVlVbTNcCId7_6IbR1KIl6Ogtzlv-aJhXNy0IjhOMIXix-NrR0KnUztJPTi4nB-Her_A5PUyMw">