Issue |
126241
|
Summary |
clang-tidy bugprone-suspicious-stringview-data-usage false positive
|
Labels |
clang-tidy,
false-positive
|
Assignees |
|
Reporter |
Febbe
|
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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs