[libcxx-commits] [libcxx] Add [[clang::lifetimebound]] to numerous functions in libc++ include headers (PR #112751)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 24 02:08:18 PDT 2025
tazjin wrote:
> Could you elaborate a bit on this? Did you run into any blockers?
I can also add to this that I cherry-picked some of these changes into the Yandex codebase (very large mostly C++ monorepo with O(thousands) of services), and ran into a substantial number of false positives with many of the annotations.
It seems that in general LLVM is pursuing a slightly different path of adding lifetimebound metadata within compiler logic, instead of within the libc++ source code, see for example this PR (which is already included in the latest release): https://github.com/llvm/llvm-project/pull/103716/
https://github.com/llvm/llvm-project/pull/112751
More information about the libcxx-commits
mailing list