[WIP] Modular C++20 modules #1545
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.35) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 165 lines diff across 2 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
Diff Size
diff_size
0.306
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1545"
general
weight: 0.35
YexuanXiao
This picks back work from #953, bringing modular modules support to C++/WinRT.
This has several advantages over PCH:
winrt::impldoesn't even exist when you doimport winrt;Currently, this depends on this fix to build: https://developercommunity.visualstudio.com/t/Error-C3779-using-C20-modules-when-for/10879949
Unfortunately, I have not been able to make it work yet without bringing in the preview MSVC toolchain (which then causes issues with
import std;). This issue seems to have finally been fixed, but the above prevents me from fully testing.Basic usage of
winrt::hstringthroughimport winrt;does work though! (test_cpp20compiles if this is the only test activated)I've also included #1521 because it has some fixes that help modules (removal of definitions from base_includes, which aren't allowed in the global module fragment).
I'm still posting this as a WIP to let interested people try/look/comment on it.