[clang] [clang][Sema] Deprecate `global`/`unknown` in `lifetime_capture_by` (PR #196635)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 10 03:04:03 PDT 2026
NeKon69 wrote:
Well it doesn't quite *break* anything it just shows a deprecation warning, you still can use the attribute with that parameter as you used it before. But if you want warning-free code then you should just replace all occurances of `lifetime_capture_by(this)` with `lifetime_capture_by_this` (as noted in the warning that is emitted when you use `lifetime_capture_by(this)`)
https://github.com/llvm/llvm-project/pull/196635
More information about the cfe-commits
mailing list