Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses clang-tidy’s bugprone-return-const-ref-from-parameter findings by explicitly marking intentional “return-by-const-ref” patterns with NOLINT in a few small helper functions used across the model/core layers.
Changes:
- Add
// NOLINT(bugprone-return-const-ref-from-parameter)to intentional return-by-const-ref sites inmore_derived(...)helpers. - Add the same suppression to an internal
maybe_name(...)helper that returns either a static sentinel or the input string. - Reformat a couple of one-line inline overloads into multi-line bodies while adding the suppression.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| phlex/model/product_store.hpp | Adds suppression for the single-arg most_derived overload (but currently placed in a way that likely won’t suppress the warning). |
| phlex/model/product_store.cpp | Adds NOLINT to the two return statements in more_derived(...). |
| phlex/model/data_layer_hierarchy.cpp | Adds NOLINT to the ternary return in maybe_name(...). |
| phlex/core/message.hpp | Rewrites the single-arg most_derived overload into multi-line form and adds NOLINT to the return. |
| phlex/core/message.cpp | Adds NOLINT to the two return statements in more_derived(...). |
All existing ocurrences were intentional, and have been marked as such with `NOLINT`.
d8afae3 to
b40ea15
Compare
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #499 +/- ##
==========================================
+ Coverage 85.57% 85.62% +0.05%
==========================================
Files 142 142
Lines 3604 3604
Branches 616 616
==========================================
+ Hits 3084 3086 +2
+ Misses 310 309 -1
+ Partials 210 209 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
All existing ocurrences were intentional, and have been marked as such with
NOLINT.