Skip to content

Remove static list of names and URIs from require_errdefer_deinit #48#117

Merged
KurtWagner merged 6 commits into0.15.xfrom
0.15.x-refactor-errdefer
Sep 18, 2025
Merged

Remove static list of names and URIs from require_errdefer_deinit #48#117
KurtWagner merged 6 commits into0.15.xfrom
0.15.x-refactor-errdefer

Conversation

@KurtWagner
Copy link
Owner

It now checks whether the type has a deinit call.

It still tries to limit noise by only looking at declarations to .empty, .init, initCapacity(..) or init(..) without parameters that look like arenas or fixed buffers. I'm unsure about this.

@KurtWagner KurtWagner changed the title Remove static list of names and URIs from require_errdefer_deinit Remove static list of names and URIs from require_errdefer_deinit #48 Sep 18, 2025
@KurtWagner KurtWagner merged commit 6511432 into 0.15.x Sep 18, 2025
4 checks passed
@KurtWagner KurtWagner deleted the 0.15.x-refactor-errdefer branch September 18, 2025 08:01
KurtWagner added a commit that referenced this pull request Sep 18, 2025
… (#117)

It now checks whether the type has a `deinit` call.

It still tries to limit noise by only looking at declarations to
`.empty`, `.init`, `initCapacity(..)` or `init(..)` without parameters
that look like arenas or fixed buffers. I'm unsure about this.
KurtWagner added a commit that referenced this pull request Sep 18, 2025
… (#117)

It now checks whether the type has a `deinit` call.

It still tries to limit noise by only looking at declarations to
`.empty`, `.init`, `initCapacity(..)` or `init(..)` without parameters
that look like arenas or fixed buffers. I'm unsure about this.
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