This is an archive of the discontinued LLVM Phabricator instance.

[Sema][CodeComplete][ObjC] Don't split the first selector fragment
ClosedPublic

Authored by dgoldman on Jun 22 2020, 8:16 AM.

Details

Summary

Standardize the formatting of selector fragments to include the ':',
e.g. for - (void)foobar:(int)foobar;, report {foobar:} instead of
{foobar}{:}. This was normally the case except for a couple of places
where it was split.

This also improves integration with clangd since it relies upon the :
to identify ObjC selectors.

NOTE: It is possible to have selector fragments that are just : with no text, we now handle this properly for the first fragment.

Diff Detail

Event Timeline

dgoldman created this revision.Jun 22 2020, 8:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2020, 8:16 AM
sammccall accepted this revision.Jun 24 2020, 3:16 PM

Thanks for cleaning this up.
I don't think I want to know how you came to meet the no-name selectors...

This revision is now accepted and ready to land.Jun 24 2020, 3:16 PM
This revision was automatically updated to reflect the committed changes.