Skip to content

Changed a lot of Retained<>s into Ref<>s#2388

Draft
snej wants to merge 1 commit intomasterfrom
feature/ref-all-the-things
Draft

Changed a lot of Retained<>s into Ref<>s#2388
snej wants to merge 1 commit intomasterfrom
feature/ref-all-the-things

Conversation

@snej
Copy link
Copy Markdown
Collaborator

@snej snej commented Nov 22, 2025

Basically, anywhere a Retained<> was never expected/allowed to be null, I changed it to Ref<>. This makes APIs more clear, and allows UBSan (and to some degree, Clang) to detect more illegal null pointers.

This depends on couchbase/fleece#274

@cbl-bot
Copy link
Copy Markdown

cbl-bot commented Nov 22, 2025

Code Coverage Results:

Type Percentage
branches 64.75
functions 77.36
instantiations 71.09
lines 76.01
regions 72.29

Basically, anywhere a Retained<> was never expected/allowed to be
null, I changed it to Ref<>. This makes APIs more clear, and allows
UBSan to detect more illegal null pointers.
@snej snej force-pushed the feature/ref-all-the-things branch from 52599cc to 78f5d39 Compare February 25, 2026 20:25
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