File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -410,15 +410,17 @@ def get_type_name(self):
410410 else:
411411 return "&str"
412412
413+
413414def _getVariantName(variant) -> str:
414415 """
415416 Since the enum variant's type name is in the form `TheEnumName::TheVariantName$Variant`,
416417 we can extract `TheVariantName` from it for display purpose.
417418 """
418419 s = variant.GetType().GetName()
419- match = re.search(r' ::([^:]+)\$Variant$' , s)
420+ match = re.search(r" ::([^:]+)\$Variant$" , s)
420421 return match.group(1) if match else ""
421422
423+
422424class ClangEncodedEnumProvider:
423425 """Pretty-printer for 'clang-encoded' enums support implemented in LLDB"""
424426
@@ -444,9 +446,7 @@ def get_child_at_index(self, index: int) -> SBValue:
444446 ClangEncodedEnumProvider.VALUE_MEMBER_NAME
445447 )
446448 return value.CreateChildAtOffset(
447- _getVariantName(self.variant),
448- 0,
449- value.GetType()
449+ _getVariantName(self.variant), 0, value.GetType()
450450 )
451451 return None
452452
You can’t perform that action at this time.
0 commit comments