<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylU8GOmzAQ_RpzsUDEJBAOHHaT9gdaqeppZewB3PXiyB7YpF_fMUm3KMplVWRsZsbz5j17aJ2-NN8H4B6klq2xBi-pBz2NWo6YBvRm7FNFK9cOwshEhVxJVAMPBieJxo2Bvw_ggUvOyjygZsUTjWsqebhyk9W8Ba6NB4X2Qp5xBo-gObqHaS-zgXdyM3HgZgxI5LjreO8oxnHwbuoHSjzcCBJ7WmEmwNkseJmWKJnYM1FHCs4vTvVC-z-8ERyyPqMKsXZ-ZPlTdF_H1RSFGZWdNHBWHG6Sii-34DLPzmjeOUewD0VQqeJ5nWBG5G-Sai48OKtuUU7PHQI_x6gQZ3pZdfwAiluvJc9roatS6x1r1Ws2BPhQ8zJ_A7pQGxwfEE8hkhJfafROt85i5nxP1u_4QqlC97P7keim0HVRy0ROODjfhE6l_ZCG3kAA9QrJ5G1zB2dwmNpMuTcyrJ3_LunJu1_UK2SaECYI9LErtnWZDE0t6lblFbRl1UpRq91OiW7ftRut96XMIbGyBRsatotHp6ykBkajL_EMd8fk_ymYRuRC5Jtik9eF2BaZhg62pS63our2oPZsmwPdsM0iTjyqxDcLZDv1gYLWBAz_gjIE048AC2NiiAYtNJ__IZW0NnCpFJwwNo-8b6elIZNFTbNI-QOaNDyv>53496</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            readability-redundant-string-cstr doesn't catch calls accepting a std::string_view
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          sfc-gh-sgiesecke
      </td>
    </tr>
</table>

<pre>
    The readability-redundant-string-cstr doesn't catch situations where a `std::string` could be directly converted to a `std::string_view`, instead of going through a C-string retrieved via `.data()` or `.c_str()`, e.g. in:
```
#include <string>

void foo(std::string_view);

int main() {
    std::string x{"x"};
    foo(x.data());
    foo(x.c_str());
}
```

See also https://godbolt.org/z/ze6csfYfW
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUsuO2zAM_Br5ItjwSomTHHzYJu0PtEDR00IP2lartQKJ9ib9-lJOujUWudTQwyTF4YwoHey1_TYAj6Cs0s47vJYR7DRaNWKZMLqxLw3t3AZIIxM75EahGXhyOCl0YUz8bYAIXHHW1Aktk880bqnk4SZM3nIN3LoIBv2VPOMMEcFyDA_TXmYHb-Rm4sjdmJDI8dDxPlCM4xDD1A-UeLwTJPa0w0yAs1vwKqtQMbFn4pAphLg4zQudf_dmcKj6iirk2vWJ1c_ZfRs3U0g3Gj9Z4Ewe75Lk53twWefgLO9CINiHIqiU_LROcCPyV0U1Fx6c7e5RTt8HBH7JUSEuNNnu9A6Uj95KXtZCV6XWJ9aq12wI8KHmZf0K1FCfAh8QzymTEl9o9MHq4LEKsSfrd57QmNT96L4XtpX2IA-qQIce2v9_UUZ5n7gyBs6Y1auP97HcaDFF335g5XCYdGXCKxnez3-38hzDT3pyZLqUJkj0s5WbQ1MMbaONknKva20aXTe6aUDW3dZYKYXZHbrCKw0-tWybO2C8Itbo7DW3YnsqXCtqIeon-VQfpNjIykIHm8Y2G7Hr9mD2bFMDtdlXmUi-ryK2Cyc99YmC3iVM_4IqJdePAEs9wlcTDiG2qTNlP5Spd5DA_IJi0dEuIv4AlEQm9g">