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

    <tr>
        <th>Summary</th>
        <td>
            `bugprone-use-after-move` not reported for usage after `std::move()` with range
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy,
            false-negative
      </td>
    </tr>

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

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

<pre>
    ```
#include <algorithm>
#include <iostream>
#include <iterator>
#include <list>
#include <string>

int main()
{
    std::list<std::string> l1 = { "1" };

    std::list<std::string> l2;
    std::move(l1.begin(), l1.end(), std::back_inserter(l2));

    std::cout << "l1: " << *l1.cbegin() << '\n';
    std::cout << "l2: " << *l2.cbegin() << '\n';
}
```
https://godbolt.org/z/Y96a6nv7h

https://en.cppreference.com/w/cpp/algorithm/move
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMU02PozAM_TXmEhUFh68eONDO8h_2tApgILtpgpLQ0eyvX6XttvPRw0hIUfzsl2fzLL1XsyFqoDhA8ZLILSzWNZNy9CrPlPR2fGug5LePt4BCmUFvIzEQR6ln61RYTiB-fAGV9cGRfI4FcjJY9wzTyodncR-cMvMN4a0ygZ2kMoA14D7GqgPwljHGfBhBtCDaK9Xxfr9TMJ0xEC8MqgMDxAwQGVQvIA5X8u-y4LXiQ_rJngmw1lna03zXh0ems5TM-LjfK3o5_PmljCcXyMVSvGTsn8sZ7BbiPEAco3adgWjZpYH_sVZn6fDu8QdSQXE08fgq-zMtPqHFb9HGQfL2vWuWEFYfn8EOsJvt2FsdUutmwO4vYPdzX8rSnKvl2u7HdDLpsK6OJnJkBkoHewLsXgG7YV0Bu4cJsYuzT8ZGjHuxlwk1WZUX-R5zkSVLI4e87ktZSSKR10VRVzkv-ZRPtaglZZioBjkWPMc8yzgXPB3EiPtYUPMpk6KGnNNJKp1qfT5F_YnyfqMmE1VWlImWPWl_2SXEQUsz74Ia3wAR8AiIk9SedoZmGVT0CMaVc00k2_Xb7CHn0Wv-QR9U0BQXsN_m1VlDu83TTk6B3O7is5IzYwNztFoXaGSTdWzzciZ2SWJQ8s_GjMYqOXtVYWFOmpmSzenm0y9SYdn626ijmtuxW539TUMA7C6de8Du1vy5wX8BAAD__7mtPPA">