Repository navigation
Convert all idea/TODO comments to GitHub issues - #86
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #15
- Removed TODO comment from FileMappedResizableDirectMemory.h capacity calculation (issue #87) - Removed TODO comment from FileMappedResizableDirectMemory.h Close() method (issue #88) - Removed TODO comment from IArrayMemory.h const operator[] (issue #89) - Removed TODO comment from ResizableDirectMemoryBase.h Ranges usage (issue #90) All TODO comments have been converted to proper GitHub issues for tracking and resolution. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
We need to double check we did it fully, and if something is not yet converted from comments to issues, we must do it. The scope is entire codebase. |
|
🤖 AI Work Session Started Started at 2026-11-29T15:59:31.860Z. Please wait for it to finish before giving feedback. Runtime: solve |
Remove the C# translation leftovers that were kept as comments: - ObjectName overrides in 5 classes (tracked in #133) - 'where TElement : struct' constraint in FileArrayMemory (tracked in #132) - commented-out operator[] declarations in IArrayMemory (tracked in #89) - C# indexer in DirectMemoryAsArrayMemoryAdapter (already implemented by operator[]) - '_pointer = nullptr;' in ResizableDirectMemoryBase destructor (dead code) Add scripts/check-comments.sh and a CI workflow that fail when TODO markers or commented-out code appear again.
…pendencies.sh conan create failed in CI with 'Missing prebuilt package for cpuinfo/cci.20220228' because no prebuilt binary exists for the runner's GCC 15 profile.
…-dependencies.sh cpuinfo/cci.20220228 failed with 'Compatibility with CMake < 3.5 has been removed from CMake'. Set CMAKE_POLICY_VERSION_MINIMUM=3.5 and pre-build the requirements of conanfile.txt while it is set.
The recipe in linksplatform/conan-center-index no longer has 0.5.4 sources (KeyError: '0.5.4'), and platform.ranges/platform.collections require 0.5.6.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost: $1.511031📊 Context and tokens usage:
Total: (80 new + 68.6K cache writes + 2.2M cache reads) input tokens, 26.0K output tokens, $1.511031 cost 🤖 Models used:
📎 Log file uploaded as Gist (1320KB)This AI session has ended. Monitoring of this pull request continues. Feel free to review and add feedback while checks are running. |
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Linked issues
|
Summary
Converts every idea comment in the code base to a GitHub issue, as #15 asks. Following the review feedback, the scope is the entire code base: C++, C#, the original
IResizableDirectMemoryremarks, and therustsubmodule.1. Original
IResizableDirectMemoryremarks (the comment moved to #15)The
<remarks>block (source) was removed from the code in e5aa08e ("Removed comment to #15"). Each item now has its own issue:ReservedCapacityredundant / read-only (L10-11)OnPointerChanged/OnSizeChangedevents (L22)2. C++ TODO comments (first commit)
FileMappedResizableDirectMemoryconstructor (// TODO: cringe)FileMappedResizableDirectMemory::Close()operator[](including the const one) inIArrayMemoryResizableDirectMemoryBase3. C++ commented-out code (C# translation leftovers)
ObjectNameoverrides in 5 classes → [C++] Implement ObjectName equivalent for memory classes #133//where TElement : structinFileArrayMemory→ [C++] Constrain TElement to trivially copyable types (C# where TElement : struct) #132operator[]declarations inIArrayMemory→ removed, tracked by Implement const operator[] in IArrayMemory interface #89 (its body quotes the code)DirectMemoryAsArrayMemoryAdapter→ removed with no issue, becauseoperator[]below it already implements it//_pointer = nullptr;in theResizableDirectMemoryBasedestructor → dead code, removed; the destructor is now= default4. Checked with no new issues needed
//-V3073) remain.rustsubmodule (pinned to mem-rsf7f6bf6): it has 5fixmecomments, but that code belongs to mem-rs. All 5 are gone from mem-rsmain, and updating the pin is already tracked in Update the rust submodule pin (2022 f7f6bf6 → mem-rs 0.6.2) and keep it current #118.Automated check
scripts/check-comments.shfails onTODO/FIXME/HACK/XXXmarkers or commented-out code incpp/andcsharp/. The new.github/workflows/comments.ymlruns it on pushes and pull requests tomain.main): the script fails and reports 30 lines.Reproduce with
./scripts/check-comments.sh.Notes
No behaviour changes: only comments were removed, plus an empty destructor became
= default.CI fix (
Test cpp)Test cppwas broken before this PR. It failed while installing dependencies, before compiling anything.cpp/install-local-conan-dependencies.shis now fixed:--build=missing. Without it, conan failed withMissing prebuilt package for 'cpuinfo/cci.20220228'.CMAKE_POLICY_VERSION_MINIMUM=3.5. Without it, CMake 4 rejectedcpuinfo:Compatibility with CMake < 3.5 has been removed.platform.hashingfrom 0.5.4 to 0.5.6. The recipe no longer has 0.5.4 sources (KeyError: '0.5.4'), andplatform.rangesandplatform.collectionsrequire 0.5.6.platform.collectionstest_package (-tf ""). It fails withgsl/gsl: No such file or directory.conanfile.txtrequirements while the CMake policy variable is set.With these changes,
Platform.Memory.Testsbuilds against the edited headers (run). Note: the sharedlinksplatform/Workflowscpp-test workflow only builds the tests and does not run them.Fixes #15