[libcxx-commits] [PATCH] D141321: [libc++] Add [[clang::lifetimebound]] attribute to std::forward and friends

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 9 13:29:59 PST 2023


philnik created this revision.
philnik added reviewers: ldionne, Mordante, var-const.
Herald added a project: All.
philnik requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This allows clang to catch lifetime bugs through these functions.
Fixes #59900


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141321

Files:
  libcxx/include/__config
  libcxx/include/__utility/forward.h
  libcxx/include/__utility/forward_like.h
  libcxx/include/__utility/move.h
  libcxx/test/libcxx/utilities/utility/forward/lifetimebound.verify.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141321.487544.patch
Type: text/x-patch
Size: 5193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230109/7e37259e/attachment-0001.bin>


More information about the libcxx-commits mailing list