Skip to content

[BoundsSafety] Unify handleCountedByAttrField and handlePtrCountedByEndedByAttr#12856

Open
zmodem wants to merge 2 commits intoswiftlang:nextfrom
zmodem:unify_handleCountedByAttrField_handlePtrCountedByEndedByAttr
Open

[BoundsSafety] Unify handleCountedByAttrField and handlePtrCountedByEndedByAttr#12856
zmodem wants to merge 2 commits intoswiftlang:nextfrom
zmodem:unify_handleCountedByAttrField_handlePtrCountedByEndedByAttr

Conversation

@zmodem
Copy link
Copy Markdown

@zmodem zmodem commented Apr 29, 2026

So far, ProcessDeclAttribute has been calling different functions for handling the counted_by family of attributes depending on whether LangOpts.BoundsSafetyAttributes is set.

Long-term we presumably want to have a single code path. This is a start in that direction.

@zmodem
Copy link
Copy Markdown
Author

zmodem commented Apr 29, 2026

I can't set the Reviewers field, but @rapidsna and @hnrklssn wdyt?

@hnrklssn
Copy link
Copy Markdown
Member

hnrklssn commented May 8, 2026

If this makes it easier to upstream things I'm all for it!

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