Skip to content

Add [[nodiscard]] to core unit, size-class, span, pagemap, and arena headers. - #1276

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_993379081
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_993379081

Conversation

@copybara-service

Copy link
Copy Markdown

Add [[nodiscard]] to core unit, size-class, span, pagemap, and arena headers.

Mark pure accessors, unit conversions, arithmetic/comparison operators, and allocation helpers with [[nodiscard]] in pages.h, huge_pages.h, common.h, sizemap.h, span.h, span_stats.h, pagemap.h, arena.h, and metadata_object_allocator.h. Cast GetArenaAllocInfo to void inside EXPECT_DEATH in arena_test.cc.

…a headers.

Mark pure accessors, unit conversions, arithmetic/comparison operators, and allocation helpers with `[[nodiscard]]` in `pages.h`, `huge_pages.h`, `common.h`, `sizemap.h`, `span.h`, `span_stats.h`, `pagemap.h`, `arena.h`, and `metadata_object_allocator.h`. Cast `GetArenaAllocInfo` to `void` inside `EXPECT_DEATH` in `arena_test.cc`.

PiperOrigin-RevId: 993379081

This branch has not been deployed

No deployments
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.

0 participants