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

    <tr>
        <th>Summary</th>
        <td>
            Bug in modernize-uses-ranges fixit
        </td>
    </tr>

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

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

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

<pre>
    The fixit produces on `Clang v19.0.1-rc4`:

```c++
std::any_of(envVariables,, ...
```

Instead of:

```c++
std::ranges::any_of(envVariables, ...
```

>From code like:

```c++
std::any_of(envVariables.cbegin(), envVariables.cend(), ...
```

There are always 2 commas after fixit is applied. It always happens, 100% reproducible.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysUkFv3CwQ_TX4ghbhsb1rDhySjSzlHn3XTxjGNi0GF_Am219f2btR2h5SVao0gMQM771hnkrJjh5RkuaRNE-FWvMUokzWXTB-eyv6YK7yZUI62Deb6RKDWTUmGjwlR352yo_0UgrGWXmIuiZHTqoHwp8If9-P_BaawOMW-23KZqurHpS__h8GAi36y38qWtU7TATOBM6UMfYbxs_Azz5lVIaG4e8Yo_Ijps_Z_0DdxTBTHQxSZ7_iP2iY6R5H6wm0BMTG_2sSvflIfS7tZcKIVG3LvaprokB1mGeVqBoyxvsYbaJqWZxFw-hzfi-d1LKg3_svOSfQ0Ii3gdveISuMrIyohCpQlic4lse2PUExST4g8qERrdBo9AmUGCptWmMqbIw-1YWVwKHmooRSQMlbhpXRoi5PfOB9Y5QgNcdZWcecu8wsxLGwKa0oS97WdVk41aNLu0UBPL7SPUsANsdGuT069OuYSM2dTTl9wGSbHcrHdaTW0zkYjN5-x8OaMB1uRrj9SLFGJ6ecl90Y0BHoRpuntWc6zAS6DfB-HJYYvqDOBLpdRiLQ3XVeJPwIAAD__4E0-dA">