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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy check readability-container-data-pointer fix adds unnecessary () around expressions with '.'
        </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>
    This is an "enhancement" request.

With clang-tidy 14.0.0.

Use code 
```
#include <vector>

struct st1
{
    std::vector<int> vint;
    std::vector<int*> vintp;
};

int main()
{
    st1 _st1;
    _st1.vintp.emplace_back(&_st1.vint[0]);
    return 0;
}
```

The generated fix creates: `(_st1.vint).data()` which has an unnecessary extra (), i.e. it would ideally be `_st1.vint.data()`. The extra () doesn't appear unless the '.' is used.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFU81y4yAMfhr7oglDsJ3EBx_6t0_QnT12ZFBjtgS8gJvm7Vd23Tad2Zk1GAQSnz4J0Qdz6R4Hm4A7eiiUIj-g13Qin3kFkf5MlLIo5H0hb97HXzYPoB364yZbc4FtLSS3a5OfiUAHQ7Bu7uTa35eqsl67adZXd6-kc4hF9XANkHKcdIaUt-vu_vZdAP5SNkV1w_3j6J1lttUDvC7zfy3VzYfx-Gld7O-_5GVkNZzQ-kIdCtX-k8YWnmaG1x7nDbFACzqNDjU99ahfFpDdp7JobmXR3M-414cj5Sl6kN9Y_TODy_g4EBzJU8RMBp7tG-hILCcOGGZbdfjyqFphMOMazU7CebB6gAGXm5-8J00pYbwAveWIsBqqO7CCBNgM5zA5A9YQOneBnmYXn_jfwQXM3K6BwARKnMt9BhxHwsguHTuEzIa8Lfifq3BKZNZSKk1XmbZqscw2O-quSk4PpF84XWiwt87my0YHn_myKG5mIpsxMCeKS1LQmPQtwJURxjB5wyzHyAobfILzXNorm3KKrhtyHud0FuoH9yOrp17ocOKFc68f02aM4TdXGC9tSvxgWGgaqZpy6FAhHXSjKqx1g2bfPm8P-9aQUnXdt9SUDntyqeOS4Afn6QwLBMtcIKXtlFRK1mrLrZaNIDowzm7PZ41p5HNRS-IqdWLmIUI8lrFbKPXTMbHS2ZTTlxI50KMnWtwxPk55CLFLhH5z0if0UyoX_93C_y-fLDyw">