Skip to content

More tidy#7449

Merged
achamayou merged 3 commits intomainfrom
more_tidy
Nov 10, 2025
Merged

More tidy#7449
achamayou merged 3 commits intomainfrom
more_tidy

Conversation

@achamayou
Copy link
Copy Markdown
Member

Follow-up to #7444

@achamayou achamayou requested a review from a team as a code owner November 10, 2025 11:25
Copilot AI review requested due to automatic review settings November 10, 2025 11:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR focuses on code quality improvements and modernization across CCF service header files, including explicit enum sizing, literal correctness, and modern C++ idioms.

  • Adds explicit uint8_t underlying type to all service-related enums for consistent size guarantees
  • Improves literal type safety and constructor parameter handling
  • Extends clang-tidy coverage to service headers

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
include/ccf/service/tables/service.h Add uint8_t underlying type to ServiceStatus enum
include/ccf/service/tables/proposals.h Add uint8_t underlying type to ProposalState enum
include/ccf/service/tables/members.h Add uint8_t to enums, modernize NewMember constructor with std::move and pass-by-value
include/ccf/service/tables/jwt.h Add uint8_t underlying type to JwtIssuerKeyFilter enum
include/ccf/service/tables/jsengine.h Add ULL/U literal suffixes to constexpr numeric constants
include/ccf/service/tables/gov.h Add default initializer to state field, remove redundant else branch in formatter
include/ccf/service/reconfiguration_type.h Add uint8_t underlying type to ReconfigurationType enum
include/ccf/service/node_info_network.h Add uint8_t to enums, replace size() > 0 with empty() check
include/ccf/service/node_info.h Add uint8_t underlying type to NodeStatus enum
include/ccf/service/consensus_type.h Add uint8_t underlying type to ConsensusType enum
include/ccf/service/code_status.h Add uint8_t underlying type to CodeStatus enum
include/ccf/service/blit_serialiser_pem.h Modernize return statements with brace initialization
include/ccf/ds/json.h Add explicit noexcept copy constructor to JsonParseError
.clang-tidy Extend HeaderFilterRegex to cover service and threading directories

@achamayou achamayou merged commit 6afea5c into main Nov 10, 2025
17 checks passed
@achamayou achamayou deleted the more_tidy branch November 10, 2025 14:24
@achamayou achamayou mentioned this pull request Nov 10, 2025
achamayou added a commit that referenced this pull request Mar 19, 2026
) (#7752)

Co-authored-by: Eddy Ashton <ashton.eddy@gmail.com>
Co-authored-by: Amaury Chamayou <amaury@xargs.fr>
Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@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.

3 participants