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

    <tr>
        <th>Summary</th>
        <td>
            `modernize-use-emplace` not reported when accessing container through pointer
        </td>
    </tr>

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

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

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

<pre>
    ```cpp
#include <list>
#include <string>

static void f(std::list<std::string>* l)
{
    l->push_back(""); // no warning
}
```

https://godbolt.org/z/3bcT6ccxx

The following invalid code will report the warning though:
```cpp
#include <list>
#include <string>

static void f(std::list<std::string> l)
{
    l->push_back(""); // warning
}
```
https://godbolt.org/z/s14GfY7G5
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzFUsGOmzAQ_RpzsRIZG8j6wCHZtPsDe-mpMmYAt46NbBO2-_UdCNtsq0qt1EPRYGY8zJs3z258-60mFbuZHkfCzoQdCRfGaTu1QIl4tCYmIj78LhVTMK6_J9c1JpWMpldvWtoR_hBTS8QR7Qb0-CO-V_MjtYTLDeVwujkUH7vD_DjF4XOj9FdEI5yvJok4UcI_olHn6ayCW8A2hPPmvI32nt-Q0hgXBmtx79vG27T3ocfoFV_R6OdK65eX90XPA9DOW-tn7EKNuyqL42mPOszGWhpg9CHRhL9tVND3Uz8sjX7m8t9k_ieN_0rgP0kb8-Kp-3R4KrO2Fq0UUmXJJAvLHbygltjiFXZThB1cRqs04D6ebtrkhZbOAziqtIYYF421d0kZBwHVDovcdPTGJQjZFGz9Cx2ThqnZa3_BwNrr22c3Bv8FdMLQxDhBRKcsHyqZDXXDWNGxrqwOuSraSlat5KLkhQDclhXLrGrAxpqUJ1TMwUxXiEW98pyZmjPOWcUKVjLJ-b6qZK44V7nmedM1ghQMLsrY_cJj0SkL9UqpmfqIyeUo4z2pcOjeAaztEF9NeMdC3ZkAs7pCtvauV-7fAQJiJFs">