Skip to content

[clang] Add preliminary lifetimebound support to APINotes (#114830) #9553

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
Nov 11, 2024

Conversation

Xazax-hun
Copy link

This patch adds the ability to mark function and method parameters as lifetimebound. Unfortunately, this does not support lifetimebound annotating 'this' (putting the annotation on the method type instead of on the parameters), or annotating constructors. For the latter, we need to support to annotate overloaded functions are ctors are always overloaded.

Cherry-picked from 7ac78f1

@Xazax-hun Xazax-hun requested a review from egorzhdan November 8, 2024 13:19
@Xazax-hun
Copy link
Author

@swift-ci please smoke test

@egorzhdan
Copy link

@swift-ci please test LLVM

@Xazax-hun
Copy link
Author

@swift-ci please test macos

@Xazax-hun
Copy link
Author

@swift-ci please test linux

@Xazax-hun Xazax-hun merged commit 6b99ebc into stable/20240723 Nov 11, 2024
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/lifetimebound-apinotes branch November 11, 2024 22:26
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