Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/core/frame.cxx (1)
58-58: Stale comment references removed categories.The comment mentions "Fork/Call/Just/Root" but the
categoryenum now only containscallandfork. Consider updating to reflect the current state.Suggested fix
- category kind = static_cast<category>(0); // Fork/Call/Just/Root + category kind = static_cast<category>(0); // Fork/Call🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/core/frame.cxx` at line 58, The inline comment on the variable declaration "category kind = static_cast<category>(0);" is stale (it lists "Fork/Call/Just/Root") and should be updated to match the current enum values (only call and fork) or removed; locate the declaration of category kind (and the enum definition for category) and replace or simplify the comment to reflect "call/fork" (or remove the comment entirely) so it accurately documents the current enum options.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/core/promise.cxx`:
- Around line 177-252: Remove the unused helper function final_suspend_continue
from the file (it is dead code; its logic was inlined into final_suspend called
from final_awaitable::await_suspend) by deleting the entire template function
definition for final_suspend_continue and any forward declarations; ensure no
callers reference final_suspend_continue (search for symbol
final_suspend_continue and final_suspend_continue<) and run tests/compile to
confirm build success after removal.
---
Nitpick comments:
In `@src/core/frame.cxx`:
- Line 58: The inline comment on the variable declaration "category kind =
static_cast<category>(0);" is stale (it lists "Fork/Call/Just/Root") and should
be updated to match the current enum values (only call and fork) or removed;
locate the declaration of category kind (and the enum definition for category)
and replace or simplify the comment to reflect "call/fork" (or remove the
comment entirely) so it accurately documents the current enum options.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 766ab6de-165d-49aa-83fa-40bb61ac737b
📒 Files selected for processing (8)
benchmark/CMakeLists.txtbenchmark/src/libfork_benchmark/fib/lf_parts.cppbenchmark/src/libfork_benchmark/fib/libfork.cppsrc/core/frame.cxxsrc/core/promise.cxxsrc/core/root.cxxsrc/core/schedule.cxxtest/src/schedule.cpp
💤 Files with no reviewable changes (2)
- benchmark/CMakeLists.txt
- benchmark/src/libfork_benchmark/fib/lf_parts.cpp
Final transition to the new schedule API
Summary by CodeRabbit
Release Notes
Refactor
schedule2renamed toschedulefor a unified entry pointChores