[clang-tools-extra] [clang-tidy] Add bugprone-lambda-capture-lifetime check (PR #203757)
Peiqi Li via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 14 07:03:40 PDT 2026
voyager-jhk wrote:
@vgvassilev @vbvictor Yes, getting this into Clang proper is definitely the ideal goal. As vbvictor noted though, the core lifetime analysis doesn't model these escapes yet.
Doing this natively would likely require extending annotations like [[clang::lifetimebound]] or noescape. That’d be a much heavier lift.
https://github.com/llvm/llvm-project/pull/203757
More information about the cfe-commits
mailing list