Skip to content

Conversation

tommymcm
Copy link
Collaborator

@tommymcm tommymcm commented Sep 3, 2025

Adds cir::CtorKind::Move to CXXCtorAttr for move constructors
Add cir::CXXAssignAttr with cir::AssignKind::{Move,Copy} for move/copy assignment operators
Per discussion in #1879
Updated lifetime checker to use the CXXAssignAttr instead of AST interface.
I will be making a PR that depends on cir::CXXCtorKind::Move soon.

Copy link

github-actions bot commented Sep 3, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@tommymcm tommymcm force-pushed the cxx_special_member-assign-and-move-ctor branch from 5b5f261 to 0abca38 Compare September 3, 2025 21:57
Copy link
Collaborator

@xlauko xlauko left a comment

Choose a reason for hiding this comment

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

lgtm, with minor format nit

@xlauko
Copy link
Collaborator

xlauko commented Sep 4, 2025

Add test that exercises print/parse of cxx_assign.

@tommymcm tommymcm force-pushed the cxx_special_member-assign-and-move-ctor branch 2 times, most recently from 4359a82 to df72729 Compare September 4, 2025 19:45
@bcardosolopes
Copy link
Member

Seems to be failing some tests on macOS and ubuntu

@tommymcm tommymcm force-pushed the cxx_special_member-assign-and-move-ctor branch from 859eec8 to e5f01ee Compare September 8, 2025 18:25
@tommymcm
Copy link
Collaborator Author

tommymcm commented Sep 8, 2025

Seems to be failing some tests on macOS and ubuntu

CI is green after rebase

@bcardosolopes bcardosolopes merged commit c7a0fbf into llvm:main Sep 8, 2025
8 of 9 checks passed
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