Repository navigation
Fix clang 23 -Wlifetime-safety errors - #106197
Conversation
|
Workflow [PR], commit [39807ec] Summary: ❌
AI ReviewSummaryThis PR makes narrowly scoped build-warning fixes for Final VerdictStatus: ✅ Approve |
We can annotate these cases in a subsequent PR and enable the warnings. I don't mind doing it in 1000 places :) |
There are not too many (AFAFIR around 63), but not sure that it worth it, since looks like it is a bug in the clang analysis |
Fix: - -Wlifetime-safety-dangling-global-moved in `ReplicasReconnector`, - -Wlifetime-safety-dangling-field-moved in `MergeTreeReaderStream` and `TTLTransform` - -Wlifetime-safety-return-stack-addr-moved in `BackupsWorker` (move first, alias later) - -Wunused-but-set-variable for `inside_main` in keeper. - -Wlifetime-safety-use-after-scope-moved in ProfileEvents Disable -Wlifetime-safety-invalidation: too many false positives, it treats mutation of a container captured by reference in a lambda as invalidating the reference to the container variable itself. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
b9d2d91 to
39807ec
Compare
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 34/38 (89.47%) | Lost baseline coverage: none · Uncovered code |
c71bec3
Fix:
ReplicasReconnector,MergeTreeReaderStreamandTTLTransformBackupsWorker(move first, alias later)inside_mainin keeper.Disable -Wlifetime-safety-invalidation: too many false positives, it treats mutation of a container captured by reference in a lambda as invalidating the reference to the container variable itself.
Changelog category (leave one):
Version info
26.6.1.581