<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121731>121731</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy][C+23] False warning on no name placeholder with std::string
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
yaoxinliu
</td>
</tr>
</table>
<pre>
```
auto _ = "abc"sv;
auto _ = 1234; // ok
auto _ = 3.14; // ok
auto _ = "abcd"sv; // ok
auto _ = {1, 2, 3}; // ok
auto _ = "abcd"s; // warning by clang-tidy: Unused local variable '_' of type 'basic_string<char>'
auto _ = [] { return ""s; }(); // warning by clang-tidy: Unused local variable '_' of type 'basic_string<char>'
```
My clang-tidy version is 19.1.5.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8k02P2ywQxz_N-DJaC4awjg8-JJsnt-fY82psWJuWQAQ423z7yt50G2nbak-1LFsw_JnfvHHObgzWdqD3oA8Vz2WKqbty_O6Cd3PVR3Pt4FHcXrFDnkvEZwR1QCDifgCifAG1X4yI93ZJagNqjx8foCPQEeO3jyJVyz-I_qZ6QzE_WT4ta_YS6Alp-ShoDh89f87porudfOUUXBixv-LgOYwPxZkrqB1-CXO2Bn0c2OOFk-PeWwRqnoEajC9Yrud13XN2w3MuyYUR1NMwcQL1H1DzG4S1bkscmGyZU1ig3oGaA9AWqP1ndPedAmL3_70TvNiUXQzoMsq2lrWuK9Mp06qWK9vJRj1K1Upqq6kzcjBbvWFSA-uW5YvpNRvRvOiWadubynUkSAspHsVGk2jrvtVsN0rT1oh-OwjYCHti52vvL6c6prFyOc-2kyQbJSvPvfV5bXuiu0QQLWOQukX10M9jho3wLpf8657iil8H5k6mD6D3T0B7Uks5juyzfU91DBgiBj5ZPHse7BS9sQlfXZkwFwNqB2r3ls9qTr6bSjnnZXet2OjKNPf1EE9AxwXi9ns4p_jVDgXouEaWgY634C4d_QgAAP__-h0X-Q">