[STF] clang-tidy fixes in code the tidy job does not see (CTK 13+ and math-library blocks) #12813
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 270 lines diff across 3 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.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #12813"
general
weight: 0.35
davebayer
Description
The clang-tidy job has covered places and STF since #11626 / #11642, but two kinds of code are still invisible to it:
_CCCL_CTK_AT_LEAST(13, x): the job builds against CUDA 12.9 (clang_preview-cudais an alias of12.9inci/matrix.yaml), so that code is preprocessed away;__stf/utility/cuda_safe_call.cuh, under__has_include: the tidy image does not ship the math libraries.A local run of the
all-tidypreset with clang-tidy 22 against a CUDA 13 toolkit, over all places and STF translation units of the tidy job, reports 13 unique findings, all in such code. This PR fixes the semantics-preserving ones:| Check | Count | Where |
|---|---|---|
|
cccl-hide-from-abi| 3 |cuda_safe_call.cuh:_CCCL_HOST_API, as on the siblingstatus_traitsspecialisations ||
readability-identifier-naming| 1 |cuda_safe_call.cuh: local X-macro, suppressed with the reason the file already uses ||
modernize-loop-convert| 2 |test/stf/graph/graph_child_move_ownership.cu||
misc-const-correctness| 1 |test/places/data_place_alloc.cu||
readability-math-missing-parentheses| 1 |test/stf/places/locality_domain_split_method.cu||
readability-isolate-declaration| 1 |test/stf/places/locality_domain_split_method.cu|No functional change.
Left out on purpose, for follow-ups:
bugprone-unused-return-valueon threecudaGraphAddNodecalls in the graph tests (wrapping them incuda_safe_callchanges behaviour on error);cuda/__algorithm/copy.h,cuda/__driver/driver_api.h);cudax_ENABLE_CUDASTF_MATHLIBSis off in the tidy preset).Note that the tidy job of this PR cannot see the fixed lines either (CUDA 12.9, no math libraries); the cudax build jobs compile them.
Checklist
🤖 Generated with Claude Code