================
@@ -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:
You can use `IdentifierInfo::isStr()` instead of getting the name as a string,
then pass the `IdentifierInfo *` into the call to `Diag` and it will be quoted
properly in the diagnostic text.
https://github.com/llvm/llvm-project/pull/196635
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits