Issue | 126515 |
---|---|
Summary | `performance-move-const-arg` not detected with ternary |
Labels | clang-tidy, false-negative |
Assignees | |
Reporter | firewave |
```cpp #include <string> void func(const std::string&);
void f(bool b) { std::string s; func(b ? "" : std::move(s)); } ``` https://godbolt.org/z/q8Phdzfea
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs