================
@@ -245,7 +245,8 @@ std::string_view containerWithAnnotatedElements() {
use(c1); // cfg-note {{later
used here}}
c1 = std::vector<std::string>().at(0); // expected-warning {{object backing
the pointer}} \
- // cfg-warning {{local temporary
object does not live long enough}} cfg-note {{destroyed here}}
+ // cfg-warning {{local temporary
object does not live long enough}} cfg-note {{destroyed here}} \
+ // cfg-note {{local temporary object
aliases the storage of local temporary object}}
----------------
NeKon69 wrote:
This does not look good and doesn't help the user really. Maybe we should skip
reporting when both expressions are `MaterializeTemporaryExpr`? Maybe I am
wrong though, and this is actually helpful.
https://github.com/llvm/llvm-project/pull/199345
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits