Issue 152514
Summary [LifetimeSafety] Add support for tracking temporaries
Labels clang:memory-safety
Assignees
Reporter usx95
    `Temporary`: Detect a common bug where a reference is taken to a temporary object that is destroyed at the end of the full _expression_. 

A warning for code such as `std::string_view sv = std::string("temporary string");`

This is noted as a lower priority since it is already detected by a pre-existing analysis.

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to