chitralverma opened a new pull request, #9401:
URL: https://github.com/apache/opendal/pull/9401

   # Which issue does this PR close?
   
   Part of #9324 (tracker #9320).
   
   # Rationale for this change
   
   Generate the existing C++ `RenameOptions` from core, as #9331, #9361, #9366, 
#9378, #9382, #9387, and #9399 do for the other options structs. This is the 
last C++ step-1 struct.
   
   # What changes are included in this PR?
   
   - `dev/src/generate/cpp.rs` lists `RenameOptions` with its one member, 
`if_not_exists`, and pins its core kind.
   - Core `RenameOptions` has no other field, so no core field stays unexposed.
   - Generated code replaces the hand-written struct, bridge mirror, and 
converters. `Rename` keeps its signatures.
   - The docs are the full core docs, with no C++ rewrite.
   - The `fs` test checks `ConditionNotMatch` on Linux, where `fs` renames with 
`RENAME_NOREPLACE`, and `Unsupported` on other platforms.
   
   Verified: comment-stripped headers match `main`, except the `RenameOptions` 
move; an old-consumer probe (layout, positional, copy-list and designated init, 
structured bindings, the `Rename` overload) gives the same output with GCC 13.3 
and clang 18.1.3, C++17 and C++20, Linux x86-64; 12 scratch mutations each fail 
a new test, and 2 core mutations fail generation; doc claims hold on `memory`, 
`fs` (Linux and macOS), and PostgreSQL 13: `if_not_exists` fails with 
`ConditionNotMatch` on an existing destination and keeps both files, succeeds 
on an empty path, and a missing source fails with `NotFound`; the C++ CI job 
passes in a Linux container.
   
   Not verified: GooseFS, which also advertises `rename_with_if_not_exists`; 
the `fs` test on Windows.
   
   # Are there any user-facing changes?
   
   - `RenameOptions` moves from `data_structure.hpp` to `options.hpp`, which 
`data_structure.hpp` includes, so existing includes compile.
   - `RenameOptions` gets doc comments. Its member, type, default, and 
behaviour do not change.
   
   # Breaking changes
   
   None
   
   # AI Usage Statement
   
   - Harness: Claude Code via T3 Code. Model: Claude Opus 5.5 
(`claude-opus-5-5`). Effort: xhigh.
   - Role: wrote the code, tests, and this description, and ran the checks 
above. The author reviews every change and claim.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to