llvm / llvm/llvm-project

[clang-tidy] `performance-faster-string-find` not reported for code involving ternaries

Open
#186,792 5 comments 0 reactions 1 assignee Claimed by @localspook View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.