Files
clang-p2996/clang/lib/Sema/SemaDecl.cpp
Alexander Shaposhnikov 31b0be4eba [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
2023-01-19 20:57:24 +00:00

780 KiB