Doxygen documentation#69
Conversation
… comments across position.h, types.h, attacks.h, fwd_decl.h, and moves_io.h to document public API and reach the 80% doc coverage target. Ran Doxygen and updated tools/missing.json.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…vailable for faster bishop/rook attacks Detect BMI2 at runtime (GCC/Clang __builtin_cpu_supports, MSVC CPUID) and use _pext_u64; fall back to multiply-and-shift. Rebuild and benchmarked perft: 17.15s (186.36 Mnps). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…erted runtime BMI2 detection changes to restore portable magic lookup used previously for universal binaries.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tures; remove unused code and improve clarity
Docstrings generation was requested by @winapiadmin. The following files were modified: * `attacks.cpp` * `attacks.h` * `fwd_decl.h` * `movegen.cpp` * `moves_io.cpp` * `moves_io.h` * `position.cpp` * `position.h` * `printers.cpp` * `types.h` These file types are not supported: * `.github/workflows/doxygen.yml` * `.github/workflows/test.yml` * `.gitignore` * `Doxyfile`
…oxygen_documentation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 35 minutes and 15 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR addresses the Doxygen CI failure (issue ChangesDoxygen Failure Fix and Documentation Cleanup
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
position.h (1)
20-23:⚠️ Potential issue | 🟠 MajorAdd
#include "zobrist.h"to make position.h self-contained.This header uses
zobrist::RandomEP,zobrist::RandomTurn,zobrist::RandomPiece, andzobrist::RandomCastledirectly in inline function implementations (e.g.,doNullMove(),material_key()). Without an explicit include, it depends on a transitive re-export from another header, which is fragile and violates header self-containment.🔧 Suggested fix
`#include` "attacks.h" +#include "zobrist.h" `#include` "movegen.h" `#include` "types.h"🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@position.h` around lines 20 - 23, Add the missing `#include "zobrist.h"` directive to the include section of position.h to ensure the header is self-contained. The header currently uses symbols from the zobrist namespace (RandomEP, RandomTurn, RandomPiece, RandomCastle) in inline function implementations such as doNullMove() and material_key(), but relies on a transitive re-export from another header. Include the zobrist header explicitly alongside the existing includes for attacks.h, movegen.h, types.h, and algorithm to properly declare these dependencies.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@moves_io.cpp`:
- Around line 180-418: The function parameter in parseSan was renamed from
raw_san to san on the function signature, but the implementation still
references the undefined identifier raw_san in four locations. Replace all
occurrences of raw_san with san: in the local variable initialization where _san
is declared (line 188), in the trimmed_san initialization within the
remove_illegals block (line 407), in the error message string concatenation
(line 415), and in the do_parse function call (line 418). This will resolve the
undefined identifier compilation errors throughout the function body.
---
Outside diff comments:
In `@position.h`:
- Around line 20-23: Add the missing `#include "zobrist.h"` directive to the
include section of position.h to ensure the header is self-contained. The header
currently uses symbols from the zobrist namespace (RandomEP, RandomTurn,
RandomPiece, RandomCastle) in inline function implementations such as
doNullMove() and material_key(), but relies on a transitive re-export from
another header. Include the zobrist header explicitly alongside the existing
includes for attacks.h, movegen.h, types.h, and algorithm to properly declare
these dependencies.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 846381a3-2224-4112-8b92-d2135c2e1a0d
📒 Files selected for processing (14)
.gitattributes.github/workflows/doxygen.yml.gitignoreDoxyfileattacks.cppattacks.hfwd_decl.hmovegen.cppmovegen.hmoves_io.cppmoves_io.hposition.cppposition.htypes.h
💤 Files with no reviewable changes (2)
- position.cpp
- moves_io.h
No functional changes
Fixes #68