[libcu++] Implement P4206R0 Revert string support in std::constant_wrapper - #9702
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthrough
Changesconstant_wrapper implementation and tests
Related PRs: None specified Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/convert.pass.cpp (1)
43-46: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low valuesuggestion: identity check dropped for scalar conversion. The struct case below (Line 55) still asserts
&result == &cws.valueto confirm the reference returned byoperator const _Tp&()aliases the static storage. The scalar case now only checks the copied value, losing that coverage for the by-value/by-reference contract on scalars. Not blocking sinceintconversion via copy is still exercised.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 63919e06-2744-4992-b9dc-4e94cc7d4d85
📒 Files selected for processing (19)
libcudacxx/include/cuda/std/__utility/constant_wrapper.hlibcudacxx/include/cuda/std/versionlibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/adl.compile.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/assign.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/binary_ops.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/call.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/comma.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/comp.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/convert.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/ctad.compile.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/cw.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/cw_fixed.array.ctor.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/cw_fixed.ctor.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/general.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/mem_ptr.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/pseudo_mutators.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/subscript.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/types.compile.pass.cpplibcudacxx/test/libcudacxx/std/utilities/const.wrap.class/unary_ops.pass.cpp
💤 Files with no reviewable changes (14)
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/assign.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/unary_ops.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/cw_fixed.array.ctor.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/cw_fixed.ctor.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/general.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/ctad.compile.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/binary_ops.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/comp.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/comma.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/adl.compile.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/mem_ptr.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/call.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/subscript.pass.cpp
- libcudacxx/test/libcudacxx/std/utilities/const.wrap.class/pseudo_mutators.pass.cpp
d361c13 to
836cd4a
Compare
dc47375 to
f24cb3f
Compare
This comment has been minimized.
This comment has been minimized.
f24cb3f to
14c4ae8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
97e67b9 to
d1a44f8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7efdf1c to
921b086
Compare
This comment has been minimized.
This comment has been minimized.
921b086 to
8f1dd2f
Compare
This comment has been minimized.
This comment has been minimized.
⏱️ CCCL compile-time benchmark comparison: Public headers compile-time benchResult: 4 regression row(s), 1 improvement row(s) above threshold.
Artifacts: reports and traces Direct file processing
🔴 Direct file processing — Regressions
🟢 Direct file processing — Improvements
|
🥳 CI Workflow Results🟩 Finished in 3h 25m: Pass: 100%/115 | Total: 4d 06h | Max: 3h 25m | Hits: 56%/940169See results here. |
This paper simplifies the implementation a lot, potentially making it useful even in C++17