Skip to content

[ObjC] Improve naming of arguments to Objective-C methods#6790

Merged
0cyn merged 1 commit into
Vector35:devfrom
bdash:objc-argument-naming
May 30, 2025
Merged

[ObjC] Improve naming of arguments to Objective-C methods#6790
0cyn merged 1 commit into
Vector35:devfrom
bdash:objc-argument-naming

Conversation

@bdash
Copy link
Copy Markdown
Contributor

@bdash bdash commented May 4, 2025

Detect and remove common prefixes used on selectors so that their arguments are more naturally named. For instance, a selector of initWithURL:withStagedURL: now ends up with arguments named URL and stagedURL, rather than initWithURL and withStagedURL.

@bdash bdash force-pushed the objc-argument-naming branch from 8996cfa to 84db272 Compare May 7, 2025 13:58
@bdash bdash force-pushed the objc-argument-naming branch from 84db272 to f9922fd Compare May 14, 2025 18:44
@bdash bdash force-pushed the objc-argument-naming branch 2 times, most recently from 010bbde to 24d313a Compare May 22, 2025 23:50
@bdash bdash force-pushed the objc-argument-naming branch from 24d313a to 4c0b520 Compare May 30, 2025 00:30
Detect and remove common prefixes used on selectors so that their
argument names are more natural. For instance, a selector of
`initWithURL:withStagedURL`: now ends up with arguments named `URL` and
`stagedURL`, rather than `initWithURL` and `withStagedURL`.
@0cyn 0cyn force-pushed the objc-argument-naming branch from 4c0b520 to 425a1be Compare May 30, 2025 17:46
@0cyn 0cyn merged commit 425a1be into Vector35:dev May 30, 2025
1 check passed
@0cyn
Copy link
Copy Markdown
Contributor

0cyn commented May 30, 2025

Thank you! Merged with 425a1be and expected to be in builds >= dev 5.1.7537

@emesare emesare added this to the Helion milestone Jun 3, 2025
@bdash bdash deleted the objc-argument-naming branch July 11, 2025 02:27
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