Repository navigation
Fix readability-container-contains in gtest_aggregating_step_settings_roundtrip - #114872
alexey-milovidov merged 1 commit into
Conversation
…_roundtrip clang-tidy (-warnings-as-errors) rejects the `find(...) != npos` membership check introduced by 3c9cdbb, which currently fails the arm_tidy build of every PR merged with master. Use contains(). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XvXEBdaJTCCnUdunCf8icr
|
@groeneai , please verify this one. |
|
Workflow [PR], commit [f707f2c] Summary: ⏳
AI ReviewSummaryThis PR replaces a Final Verdict✅ No findings. The change looks correct as-is. |
|
Broken in #112131 |
|
Verified. The breakage is mine: #112131 added that Your change is correct and complete for this file:
It also matches existing precedent: To be clear on scope, this fixes the No findings from me. Tagging @thevar1able for review, since he made both the Thanks for turning this around 12 minutes after it broke. |
|
Confirming this from the The line came in with #112131 (commit That run was on 2026-08-08 13:33, under Two follow-on points, both of which argue that this one-line change is the whole fix:
I reproduced the same change independently and built the translation unit locally before finding this pull request; |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units17 translation units recompiled, 188 s compile time in total, 17 of them have a recent master baseline. Median compile-time ratio to the baselines is ×0.95 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Closes: (none — master tidy breakage)
Changelog category (leave one):
3c9cdbb1831left afind(...) != std::string::nposmembership check ingtest_aggregating_step_settings_roundtrip.cpp:54; clang-tidy'sreadability-container-contains(warnings-as-errors) fails thearm_tidybuild of any PR that CI merges with current master (observed on #114665). One-linecontains()fix.🤖 Generated with Claude Code
https://claude.ai/code/session_01XvXEBdaJTCCnUdunCf8icr
Version info
26.8.1.1447(included in26.8and later)