Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

bdash
Copy link
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
Member

0cyn commented May 30, 2025

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

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.

2 participants