Skip to content

feat!: rename the remaining snake_case concepts to CamelCase - #513

Merged
sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/conform-concept-names
Dec 4, 2026
Merged

sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/conform-concept-names

Conversation

@sgerbino

@sgerbino sgerbino commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

decomposes_to and awaitable_decomposes_to were the only public concepts in boost::capy not named in CamelCase. They become DecomposesTo and AwaitableDecomposesTo. The header keeps its snake_case file name, as for the other concepts.

This is a breaking change. cppalliance/http uses capy::awaitable_decomposes_to in its ReadSource, WriteSink and BufferSource concepts and needs the matching rename, so the two must merge together.

Closes #512

Summary by CodeRabbit

  • API Changes
    • Renamed the public concepts decomposes_to and awaitable_decomposes_to to DecomposesTo and AwaitableDecomposesTo. Update code and documentation references to use the new names.
    • Stream concept requirements and decomposition behavior remain unchanged.

decomposes_to and awaitable_decomposes_to were the only public
concepts not named in CamelCase. They become DecomposesTo and
AwaitableDecomposesTo. The header keeps its snake_case file name, as
for the other concepts.

Http uses awaitable_decomposes_to in its ReadSource, WriteSink and
BufferSource concepts, so the two must merge together.

Closes cppalliance#512
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The public concepts decomposes_to and awaitable_decomposes_to are renamed to DecomposesTo and AwaitableDecomposesTo. ReadStream and WriteStream use the renamed awaitable concept. Their constraints and decomposition behavior remain unchanged.

Changes: Concept naming update

Layer / File(s) Summary
Rename concepts and update stream constraints
include/boost/capy/concept/decomposes_to.hpp, include/boost/capy/concept/read_stream.hpp, include/boost/capy/concept/write_stream.hpp
The public concepts use CamelCase names. ReadStream and WriteStream use AwaitableDecomposesTo in their constraints and documentation.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Refactor

Possibly related issues

  • #512 requests the two concept renames implemented by this change.
  • #416 tracks the Boost review items and includes the naming work requested in #512.

Suggested reviewers: vinniefalco, mvandeberg

Merge Risk: Minimal · up to 34f06 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title states the main change: the remaining snake_case public concepts are renamed to CamelCase. The raw summary shows the renames of decomposes_to and awaitable_decomposes_to to DecomposesTo and …
Linked Issues check Passed [#512] The issue requires renaming decomposes_to to DecomposesTo and awaitable_decomposes_to to AwaitableDecomposesTo, keeping snake_case file names. The reviewed summary shows both concepts r…
Out of Scope Changes check Passed All changes described in the summary are the rename itself: the concept definitions in decomposes_to.hpp, and the two constraint uses in read_stream.hpp and write_stream.hpp. Documentation and t…
Full details: Title check

Explanation

The title states the main change: the remaining snake_case public concepts are renamed to CamelCase. The raw summary shows the renames of decomposes_to and awaitable_decomposes_to to DecomposesTo and AwaitableDecomposesTo, plus the matching updates in read_stream.hpp and write_stream.hpp. The title is clear, specific, and follows the linked issue #512. The feat! prefix matches the breaking change noted in the objectives.

Full details: Linked Issues check

Explanation

[#512] The issue requires renaming decomposes_to to DecomposesTo and awaitable_decomposes_to to AwaitableDecomposesTo, keeping snake_case file names. The reviewed summary shows both concepts renamed in include/boost/capy/concept/decomposes_to.hpp (header name unchanged). The summary also shows ReadStream (read_stream.hpp) and WriteStream (write_stream.hpp) updated to use AwaitableDecomposesTo. The concept constraints are otherwise unchanged. The issue's coding requirements are met by these changes. The test and documentation updates named in the PR are excluded from this coding assessment (test/unit/concept/decomposes_to.cpp, test/doc/reference/*.concept.cpp, and doc/** are in ignored_files). The summary does not list every file. No repository search tool was available to confirm that no unchanged header still uses the old snake_case names. A remaining reference would fail to compile, so the PR's build status would show it.

Full details: Out of Scope Changes check

Explanation

All changes described in the summary are the rename itself: the concept definitions in decomposes_to.hpp, and the two constraint uses in read_stream.hpp and write_stream.hpp. Documentation and test updates are direct consequences of the rename and implement the issue. No unrelated behavior change is described. The concept constraints and decomposition behavior are stated as unchanged.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit reads the names anew
CamelCase hops into view
Two concepts change their style
Stream constraints follow with a smile
The burrow welcomes names in tune

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7740e52 and 34f0647.

Files ignored due to path filters: 5

  • doc/modules/ROOT/pages/reference-overview.adoc is excluded by !**/doc/**
  • doc/read-some-rationale.md is excluded by !**/doc/**
  • test/doc/reference/AwaitableDecomposesTo.concept.cpp is excluded by !**/doc/**, !**/test/**
  • test/doc/reference/DecomposesTo.concept.cpp is excluded by !**/doc/**, !**/test/**
  • test/unit/concept/decomposes_to.cpp is excluded by !**/test/**
Files selected for processing: 3

  • include/boost/capy/concept/decomposes_to.hpp
  • include/boost/capy/concept/read_stream.hpp
  • include/boost/capy/concept/write_stream.hpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://513.capy.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-12-04 17:47:26 UTC

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.48%. Comparing base (0e78c3b) to head (34f0647).
⚠️ Report is 3 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #513   +/-   ##
========================================
  Coverage    98.48%   98.48%           
========================================
  Files          135      135           
  Lines         7377     7377           
========================================
  Hits          7265     7265           
  Misses         112      112           
Flag Coverage Δ
linux 98.48% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
include/boost/capy/concept/decomposes_to.hpp 100.00% <ø> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e78c3b...34f0647. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sgerbino
sgerbino merged commit 1953e17 into cppalliance:develop Dec 4, 2026
42 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Beast2 Dec 4, 2026
@sgerbino
sgerbino deleted the pr/conform-concept-names branch December 4, 2026 18:07
sgerbino added a commit to cppalliance/http that referenced this pull request Dec 4, 2026
Capy renamed awaitable_decomposes_to to AwaitableDecomposesTo
(cppalliance/capy#513). The ReadSource, WriteSink, BufferSource and
BufferSink concepts now use the new name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Rename the remaining snake_case concepts to CamelCase

2 participants