Skip to content

clang-tidy: resolve performance-no-automatic-move#588

Open
greenc-FNAL wants to merge 2 commits into
mainfrom
maintenance/clang-tidy/performance-no-automatic-move
Open

clang-tidy: resolve performance-no-automatic-move#588
greenc-FNAL wants to merge 2 commits into
mainfrom
maintenance/clang-tidy/performance-no-automatic-move

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 19:59
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 resolves a clang-tidy performance-no-automatic-move finding by adjusting index_router::route’s parameter to no longer be const when passed by value, enabling implicit move on return. It also updates the running clang-tidy fixes tracker documentation to mark the check as addressed.

Changes:

  • Update index_router::route to take data_cell_index_ptr by value without top-level const, allowing an efficient implicit move in return index;.
  • Mark performance-no-automatic-move as completed in the April 2026 clang-tidy fixes tracker and link the fixing PR.

Reviewed changes

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

File Description
phlex/core/index_router.cpp Removes top-level const from a by-value parameter to enable implicit move on return and satisfy clang-tidy.
docs/dev/clang-tidy-fixes-2026-04.md Updates the checklist to reflect the check is fixed and references the PR that fixed it.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@            Coverage Diff             @@
##             main     #588      +/-   ##
==========================================
+ Coverage   82.62%   82.64%   +0.01%     
==========================================
  Files         161      161              
  Lines        5895     5895              
  Branches      682      682              
==========================================
+ Hits         4871     4872       +1     
  Misses        803      803              
+ Partials      221      220       -1     
Flag Coverage Δ
scripts 76.12% <ø> (ø)
unittests 86.01% <ø> (+0.02%) ⬆️

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

Files with missing lines Coverage Δ
phlex/core/index_router.cpp 92.13% <ø> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

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

@greenc-FNAL greenc-FNAL force-pushed the maintenance/clang-tidy/performance-no-automatic-move branch from 0f362ea to 4d9acbf Compare May 19, 2026 14:17
@greenc-FNAL greenc-FNAL force-pushed the maintenance/clang-tidy/performance-no-automatic-move branch from 4d9acbf to 7139f8d Compare May 20, 2026 20:28
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