[clang-tidy] `performance-faster-string-find` not reported for code involving ternaries
Open
clang-tidy
false-negative
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
```cpp
#include
void f(bool b)
{
std::string s;
s += b ? "0" : " ";
}
```
https://godbolt.org/z/nox19Pjed
Contributor guide
Assessment
This issue has not been assessed yet.