Add comment about NonZero printing as character literal.

This commit is contained in:
Markus Reiter 2024-03-10 15:21:35 +01:00
parent 75fba9d574
commit 42c5eb8845
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -746,6 +746,8 @@ def StdNonZeroNumberSummaryProvider(valobj, _dict):
inner = valobj.GetChildAtIndex(0) inner = valobj.GetChildAtIndex(0)
inner_inner = inner.GetChildAtIndex(0) inner_inner = inner.GetChildAtIndex(0)
# FIXME: Avoid printing as character literal,
# see https://github.com/llvm/llvm-project/issues/65076.
if inner_inner.GetTypeName() in ['char', 'unsigned char']: if inner_inner.GetTypeName() in ['char', 'unsigned char']:
return str(inner_inner.GetValueAsSigned()) return str(inner_inner.GetValueAsSigned())
else: else: