Fix straggling clang-tidy errors - #803
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout. (4)
🧰 Additional context used📓 Path-based instructions (3)**/*.{cpp,cc,cxx,h,hpp}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{hpp,cpp}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.hpp📄 CodeRabbit inference engine (AGENTS.md)
Files:
🪛 Cppcheck (2.21.0)form/root_storage/root_ttree_write_container.cpp[style] 39-39: The function 'getItems' is never used. (unusedFunction) 🔇 Additional comments (9)
📝 WalkthroughWalkthroughThis PR applies localized C++ modernization changes across ROOT storage, framework type declarations, storage control flow, and tests. It adds explicit ownership annotations, uses inferred pointer types, fixes an enum underlying type, and simplifies several expressions. ChangesC++ modernization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #803 +/- ##
==========================================
- Coverage 83.89% 83.89% -0.01%
==========================================
Files 171 172 +1
Lines 7234 7233 -1
Branches 850 850
==========================================
- Hits 6069 6068 -1
Misses 881 881
Partials 284 284
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This PR addresses some
clang-tidyissues that should already be resolved (according to thedocs/dev/clang-tidy-fixes-2026-04.mdchecklist), but they either crept back in or were somehow skipped.Code quality
clang-tidyfindings in ROOT storage code by using inferred pointer types and explicitgsl::owner<void*>annotations.ROOT_TTree_Write_ContainerImp.returnstatement fromStorageReader::readContainer.framework_graph::driver_modewithstd::uint8_t.Tests
find(...) != std::string::nposchecks withstd::string::contains.std::size_tvalue in an execution-count assertion.provide_ten_numberswith return-type deduction without changing behavior.