Skip to content

Conversation

@kastiglione
Copy link

@kastiglione kastiglione commented Aug 9, 2023

Replace the ObjC_Selector_SummaryProvider function with the equivalent summary string.

@kastiglione kastiglione force-pushed the dl/lldb-Use-summary-string-for-ObjectiveC.Selector-NFC branch from 608bdc5 to 08bc94b Compare August 9, 2023 18:00
@kastiglione kastiglione requested a review from jimingham August 9, 2023 18:01
Copy link

@jimingham jimingham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only observable difference I can tell between the old and new summaries is that you've lost the EscapeStyle being set to Swift rather than CXX. But that only matters for strings that have non-ASCII characters in them. ObjC Selectors are C identifiers so they have to be ASCII, so that shouldn't be relevant.

@kastiglione
Copy link
Author

Going to add a test.

@kastiglione
Copy link
Author

@jimingham that's about what I was thinking too.

@jimingham
Copy link

If you knew that the category you were adding the summary to only supported the swift language, then you could force the EscapeStyle to swift on the summary string formatters added to it. But those formatters are currently in the "runtime synthetics" category which is both swift & ObjC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants