Skip to content

-mm=own: a call that overwrites a field of an owned object drops the old value - #685

Merged
ASDAlexander77 merged 1 commit into
mainfrom
own-call-field-drops
Oct 25, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
own-call-field-drops

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

  • Ownership signature pass infers which fields a callee overwrites (OWN_DROP_FIELDS_ATTR_NAME); inference uses it at call sites so the old field value is dropped instead of leaked or double-owned.
  • Place-read inference updated to consume the new facts.
  • Tests: own_call_field_drops plus two own_err_call_field_drops_* negative cases (owner / under-drop); registered in tester CMakeLists.
  • .gitignore now excludes log files.

Test plan

  • ctest -C Release own suite: 100% passed (1383 tests)

🤖 Generated with Claude Code

…signature passes

- Introduced new attributes and methods to handle field drops in ownership inference.
- Updated tests to validate behavior of methods that overwrite fields in owned objects.
- Enhanced .gitignore to exclude log files.
@ASDAlexander77
ASDAlexander77 merged commit f172b13 into main Oct 25, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the own-call-field-drops branch October 25, 2026 00:40
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.

1 participant