Skip to content

[clang] Permit lifetimebound in all language modes #9566

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

Lifetimebound annotations can help diagnose common cases of dangling including escaping the address of a stack variable from a function. This is useful in all C family languages, restricting these diagnostics to C++ is an artificial limitation.

Cherry-picked from 7ac78f1

Lifetimebound annotations can help diagnose common cases of dangling
including escaping the address of a stack variable from a function. This
is useful in all C family languages, restricting these diagnostics to
C++ is an artificial limitation.

Co-authored-by: Gabor Horvath <[email protected]>
@Xazax-hun Xazax-hun requested a review from egorzhdan November 11, 2024 13:49
@Xazax-hun Xazax-hun changed the title [clang] Permit lifetimebound in all language modes (#115482) [clang] Permit lifetimebound in all language modes Nov 11, 2024
@Xazax-hun
Copy link
Author

@swift-ci please test LLVM

@Xazax-hun
Copy link
Author

@swift-ci please test

@Xazax-hun Xazax-hun merged commit 4b6b568 into stable/20240723 Nov 11, 2024
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/lifetimebound-other-langs 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