Skip to content

[cxx-interop] Simplify finding copy/move ctors in IRGen #77855

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
Dec 2, 2024

Conversation

Xazax-hun
Copy link
Contributor

No description provided.

@Xazax-hun Xazax-hun requested a review from rjmccall as a code owner November 27, 2024 16:03
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test Windows

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Nov 29, 2024
for (auto ctor : cxxRecordDecl->ctors()) {
if (ctor->isCopyConstructor() &&
ctor->getAccess() == clang::AS_public &&
// rdar://106964356
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't add naked radar links to the main source code like this. First and foremost, you should describe the issue that you're working around instead of just adding a link. Second, this is an open-source project, so you should really link to an open source GitHub issue which will be readable by non-Apple employees.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. This one was here before my change. I'll try to replace it with the summary of what the rdar is about in a followup PR.

@Xazax-hun Xazax-hun merged commit 04de349 into main Dec 2, 2024
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/refactor-findctors branch December 2, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants