Skip to content

fix: resolve SINDI clang-tidy failures#2477

Merged
wxyucs merged 1 commit into
antgroup:mainfrom
wxyucs:fix/sindi-clang-tidy-lint
Jul 20, 2026
Merged

fix: resolve SINDI clang-tidy failures#2477
wxyucs merged 1 commit into
antgroup:mainfrom
wxyucs:fix/sindi-clang-tidy-lint

Conversation

@wxyucs

@wxyucs wxyucs commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Resolve the five clang-tidy 15 errors introduced by c715b63d in src/algorithm/sindi/sindi.cpp.
  • Use named validity predicates for macro-expanded bounds checks.
  • Mark the immutable-window serializer static and use a transparent comparison functor.

Verification

  • Focused clang-tidy 15 on all source files changed by the recent main commits: passed.
  • cmake --build build-release --target sindi -j4: passed.
  • SINDI unit tests: 26 test cases and 184,409 assertions passed.

Fixes: #2487

Signed-off-by: Xiangyu Wang <wxy407827@antgroup.com>

Assisted-by: Codex:GPT-5
Copilot AI review requested due to automatic review settings July 20, 2026 07:23
@vsag-bot

vsag-bot commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

/label S-ready-to-merge
/waiting-on maintainer
/request-review @jiaweizone
/request-review @inabao

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vsag-bot
vsag-bot self-requested a review July 20, 2026 07:23
@wxyucs wxyucs added the kind/bug Bug fixes, defects, or unexpected behavior 修复程序错误、缺陷或异常行为 label Jul 20, 2026 — with ChatGPT Codex Connector
@vsag-bot

vsag-bot commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Automated pull request review completed.

Review effort: low (23 changed lines across 2 files).

No actionable inline findings were found.
Review: #2477 (review)

@mergify

mergify Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 3 merge protections satisfied — ready to merge.

Show 3 satisfied protections

🟢 Require kind label

  • label~=^kind/

🟢 Require version label

  • label~=^version/

🟢 Require linked issue for feature/bug PRs

  • body~=(?im)(?:^|[\s\-\*])(?:close[sd]?|fix(?:e[sd])?|resolve[sd]?)\s*:?\s+(?:#\d+|[\w.\-]+/[\w.\-]+#\d+|https?://github\.com/[\w.\-]+/[\w.\-]+/issues/\d+)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors several methods in the SINDI class to improve readability and code structure. Specifically, it extracts complex boolean expressions into descriptive local variables within Deserialize and deserialize_immutable_window. It also simplifies the template argument for std::greater_equal and changes serialize_immutable_window from a const member function to a static member function. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@wxyucs

wxyucs commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

/version 1.1

@vsag-bot vsag-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated inline review completed.

Review effort: low (23 changed lines across 2 files).
No actionable inline findings were found.

Reviewed commit f09f122.

@LHT129 LHT129 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify

mergify Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@wxyucs
wxyucs merged commit 07022b9 into antgroup:main Jul 20, 2026
22 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Bug fixes, defects, or unexpected behavior 修复程序错误、缺陷或异常行为 size/S version/1.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SINDI clang-tidy 15 failures on main

4 participants