[clang] [clang][Sema] Deprecate `global`/`unknown` in `lifetime_capture_by` (PR #196635)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 11 09:17:21 PDT 2026
================
@@ -4426,6 +4450,17 @@ LifetimeCaptureByAttr *Sema::ParseLifetimeCaptureByAttr(const ParsedAttr &AL,
}
assert(AL.isArgIdent(I));
IdentifierLoc *IdLoc = AL.getArgAsIdent(I);
+ StringRef Name = IdLoc->getIdentifierInfo()->getName();
----------------
AaronBallman wrote:
Oh, good catch, I didn't pick up that this was for just the argument, in that case the previous way is fine (sorry for the noise!)
https://github.com/llvm/llvm-project/pull/196635
More information about the cfe-commits
mailing list