refactor: replace raw new/delete with std::unique_ptr in NRadix#3122
Draft
robbycochran wants to merge 1 commit intorc-claude-devfrom
Draft
refactor: replace raw new/delete with std::unique_ptr in NRadix#3122robbycochran wants to merge 1 commit intorc-claude-devfrom
robbycochran wants to merge 1 commit intorc-claude-devfrom
Conversation
Replace manual memory management with RAII using std::unique_ptr for: - nRadixNode members (value_, left_, right_) - NRadixTree root_ member This eliminates manual delete calls, simplifies copy/assignment operators, and prevents potential memory leaks. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
/retest collector-on-push |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## rc-claude-dev #3122 +/- ##
================================================
Coverage ? 27.42%
================================================
Files ? 95
Lines ? 5423
Branches ? 2540
================================================
Hits ? 1487
Misses ? 3214
Partials ? 722
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
std::unique_ptrinNRadix.handNRadix.cppnRadixNodemembers (value_,left_,right_) to usestd::unique_ptrNRadixTree::root_to usestd::unique_ptrdeletecalls - destructors now defaultedstd::make_uniqueBenefits
Test Plan
cmake --build)ctest)Code Review
Ready for review. All functional tests passed. The s390x build failure is a CI infrastructure issue (Ansible installation on P&Z runner) unrelated to the C++ refactoring. Lint failure is pre-existing (shellcheck in .devcontainer/run.sh).
Agent Status
Last updated: 2026-03-19 22:31 UTC
CI cycle: 4 of 6
Status: FLAKE
Details: Code changes fully validated. All unit tests and main architecture builds (amd64/arm64) passed. s390x build failed during CI infrastructure setup (Ansible), not code compilation. Ready for maintainer review.
🤖 Generated with Claude Code