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

   # Which issue does this PR close?
   
   Part of #9324 (tracker #9320).
   
   # Rationale for this change
   
   Generate the existing C++ `CopyOptions` from core, as #9331, #9361, #9366, 
#9378, #9382, and #9387 do for the other options structs.
   
   # What changes are included in this PR?
   
   - `dev/src/generate/cpp.rs` lists the 6 `CopyOptions` members in their 
released order and pins the core kind of each.
   - `if_none_match`, `if_version_match`, `if_version_not_match`, 
`if_not_changed`, `user_metadata`, `content_type`, and `content_language` stay 
unexposed.
   - Generated code replaces the hand-written struct, bridge mirror, and 
converters. `Copy` keeps its signatures. The `lib.rs` and `operator.cpp` 
optional helpers that only `CopyOptions` used go away.
   - The member docs are the full core docs. A `Self::x` code span reads `x`, 
so the `source_content_length_hint` doc names `source_version`.
   - The `concurrent` doc names `Operator::Copy`, because C++ has no copier.
   - The `source_content_length_hint` doc drops the returned metadata, because 
C++ `Copy` returns none.
   - `RenameOptions` stays hand-written in this PR.
   
   Verified: comment-stripped headers match `main`, except the `CopyOptions` 
move; an old-consumer probe (layout, positional and designated init, structured 
bindings, the `Copy` overload) gives the same output with GCC 13.3 and clang 
18.1.3, C++17 and C++20, Linux x86-64; 15 scratch mutations each fail a new 
test; doc claims hold on `memory`, `fs`, and Silo S3, where a wrong 
`source_content_length_hint` truncates or fails a chunked copy and 
`source_version` copies the old version; the C++ CI job passes in a Linux 
container.
   
   Not verified: `if_not_exists` and `if_match` on a service that enforces 
them; Silo S3 ignores both on copy.
   
   # Are there any user-facing changes?
   
   - `CopyOptions` moves from `data_structure.hpp` to `options.hpp`, which 
`data_structure.hpp` includes, so existing includes compile.
   - `CopyOptions` gets doc comments. Members, types, defaults, 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