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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy bugprone-suspicious-stringview-data-usage false positive
        </td>
    </tr>

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

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

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

<pre>
    It flags the following
```
detail::sqlite3_prepare_v2(db, s.data(), util::checked_cast<int>(s.size()), &ptr, nullptr);
```

`util::checked_cast` is a function, that wraps a static_cast with another size check, but the value will flow on success through the function.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0Ut1upDwMfZpwE4HAmeHngotp-430PUUVggHvpoSNnRl1n34FnVGllVaKFDvJOcc-jmWmeUXs1flFnd8ym2QJsb_iMGA2hPGz_1_05O3MWhbUU_A-3GmdVXlRdflY5WVEseSVuShz4V-eBM37FnGzEd9voKAdBwWvmovRilXQKuj2PMkT5BZ0P3F8d5ZFmVdaRZn_FLRcMP3GJ-IAKag3iXu0Ju-PsFPm5a-KvtJ_CNSlJtZWT2l1QmHdyWSxou_RbvsFixVyx2N9J1m0XYMsGPVejT64dsyQ5LDlZn1CfSfv9eTDXYdVc3IOeXcthjQvX-495Ips7M3Ymc5m2FeNaTsDVdtkS98NZXOqz23TmKlzWE8TWgQENJWpu6HMqIcSziWUTQUnUzZF16HDFpwbsYFq6NSpxA9LvvD-9lGEOGfEnLCvoIZTlXk7oOdj2gDO23XOhcZPBaDgVQFM1jPmW2ASuuF-fH7LYr-T5UOaWZ1KTyz8TS8kHvtvKj2keYthxZwTb-QoJM5ZIq3zjfCe7z8gT2xn1IeYfoplKfp-Edl4nxhcFVxnkiUNhQsfCq674mPLtxh-oBMF16M7VnB9NHjr4U8AAAD__88B6Uk">