Skip to content

Apply noexcept specifiers to core non-throwing utilities and helper functions - #1942

Draft
uNetworkingAB with Copilot wants to merge 2 commits into
masterfrom
copilot/apply-noexcept-to-code
Draft

Apply noexcept specifiers to core non-throwing utilities and helper functions#1942
uNetworkingAB with Copilot wants to merge 2 commits into
masterfrom
copilot/apply-noexcept-to-code

Conversation

Copilot AI commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

The objective is to annotate all possible non-throwing functions and methods in the codebase with noexcept to enable compiler optimizations and guarantee exception-free behavior.

This change comprehensively annotates core utilities, query parsers, and chunked encoding iterators and helpers.

Utilities and Parsing

  • src/Utilities.h: Added noexcept to inline helper functions u32toaHex and u64toa.
  • src/QueryParser.h: Added noexcept to getDecodedQueryValue.
  • src/BloomFilter.h: Added noexcept to perfectHash, getFeatures, mightHave, add, and reset methods.

Chunked Encoding

  • src/ChunkedEncoding.h: Annotated chunked encoding state validation, parsing predicates, and the chunk extraction function (getNextChunk) with noexcept.
  • ChunkIterator: Annotated all iterator interface functions, constructors, increment operators, and comparison operators in ChunkIterator with noexcept.

Example

// Before
inline int u32toaHex(uint32_t value, char *dst) { ... }

// After
inline int u32toaHex(uint32_t value, char *dst) noexcept { ... }

Copilot AI and others added 2 commits September 13, 2026 06:00
Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
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