Push and pop `empty_bases` where `_CCCL_DECLSPEC_EMPTY_BASES` is used #12708
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.31) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.31 · 116 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.285
Real PR Conversation Timeline
1 comments
"Review active on #12708"
general
weight: 0.35
bernhardmgruber
Description
Some code bases define
empty_basesas a macro, which breaks__declspec(empty_bases)with MSVC. The prologue pushes and undefines it around every libcu++ header, but the Thrust iterators that use_CCCL_DECLSPEC_EMPTY_BASESare not wrapped by the prologue.This PR pushes and undefines
empty_basesaround the feature check in<cuda/std/__cccl/attributes.h>, and in every libcu++, cudax and Thrust header that uses_CCCL_DECLSPEC_EMPTY_BASES, between the prologue and the epilogue or around the code of the Thrust headers. The feature check never sees the macro, so the layout of CCCL types does not depend on it. This prepares droppingempty_basesfrom the prologue.The new test includes every libcu++ header that uses
_CCCL_DECLSPEC_EMPTY_BASESwhileempty_basesis a macro.Checklist