| Issue |
114811
|
| Summary |
bugprone-use-after-move should catch std::optional::has_value
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
higher-performance
|
Per https://github.com/llvm/llvm-project/pull/114255#discussion_r1826547993, `std::optional::has_value` should probably be considered bug-prone after a move, since it implies the use of `std::optional::value` afterward, which is moved-from.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs