Skip to content

fix(clang-tidy): avoid unnecessary handle copies in sample sender/receiver - #1293

Merged
castler merged 1 commit into
eclipse-score:mainfrom
castler:fix_unnecessary_copy_init_2
Oct 6, 2026
Merged

castler merged 1 commit into
eclipse-score:mainfrom
castler:fix_unnecessary_copy_init_2

Conversation

@castler

@castler castler commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Binds handle by const auto& in 4 places in sample_sender_receiver.cpp instead of copying it, fixing the remaining 4 performance-unnecessary-copy-initialization alerts. handle_result outlives each reference. --config=ci build of //score/mw/com/test/... passes.

Review Checklist Evidence Notice - Merge Queue

This pull request is (or recently was) in the merge queue.
A pull request may only enter the merge queue when all necessary review checklist acknowledgements are in place.

Checklist evidence (the description, an acknowledgement reply, an approving review, or a commit)
changed after this pull request entered the merge queue.
The evidence visible here may no longer reflect what was true at merge-queue entry.

Once this pull request is merged, prefer the evidence recorded in git history over this description
where the two differ — the description keeps updating live for as long as this PR exists, while the
merge commit (if your merge-queue configuration embeds the PR title and description into it) is a
fixed, tamper-evident record of what was true at that point.

@castler
castler marked this pull request as ready for review October 6, 2026 07:44
@castler
castler enabled auto-merge October 6, 2026 07:44
@castler
castler added this pull request to the merge queue Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

Review Checklist Evidence Notice - Merge Queue

This pull request is (or recently was) in the merge queue.
A pull request may only enter the merge queue when all necessary review checklist acknowledgements are in place.

Checklist evidence (the description, an acknowledgement reply, an approving review, or a commit)
changed after this pull request entered the merge queue.
The evidence visible here may no longer reflect what was true at merge-queue entry.

Once this pull request is merged, prefer the evidence recorded in git history over this description
where the two differ — the description keeps updating live for as long as this PR exists, while the
merge commit (if your merge-queue configuration embeds the PR title and description into it) is a
fixed, tamper-evident record of what was true at that point.

Merged via the queue into eclipse-score:main with commit 8368bfb Oct 6, 2026
16 checks passed
@castler
castler deleted the fix_unnecessary_copy_init_2 branch October 6, 2026 08:42
…eiver

Bind the service handle by const reference instead of copying it, resolving
performance-unnecessary-copy-initialization.

Co-authored-by: Copilot <223556219+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

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants