[Clang] Add lifetimebound attribute to std::move/std::forward
Clang now automatically adds [[clang::lifetimebound]] to the parameters of std::move, std::forward et al, this enables Clang to diagnose more cases where the returned reference outlives the object. Associated GitHub issue: https://github.com/llvm/llvm-project/issues/60020 Test plan: ninja check-clang check-all Differential revision: https://reviews.llvm.org/D141744
Loading
Please sign in to comment