aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <ashaposhnikov@google.com>2023-01-19 20:57:24 +0000
committerAlexander Shaposhnikov <ashaposhnikov@google.com>2023-01-19 20:57:24 +0000
commit31b0be4eba9e8e9244799f0ebcb18175faff69ab (patch)
tree80e91ec654aa8e3d25d05597be8a8c5527e2aa9d /clang/lib/Frontend/CompilerInvocation.cpp
parente2c43a547b311725067e7b56ae935e940e6fc1c3 (diff)
downloadllvm-31b0be4eba9e8e9244799f0ebcb18175faff69ab.zip
llvm-31b0be4eba9e8e9244799f0ebcb18175faff69ab.tar.gz
llvm-31b0be4eba9e8e9244799f0ebcb18175faff69ab.tar.bz2
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions