Skip to content

fix: fix clang-tidy issues#318

Merged
lxy-9602 merged 2 commits into
alibaba:mainfrom
zjw1111:paimon-cpp-clang-tidy
May 29, 2026
Merged

fix: fix clang-tidy issues#318
lxy-9602 merged 2 commits into
alibaba:mainfrom
zjw1111:paimon-cpp-clang-tidy

Conversation

@zjw1111
Copy link
Copy Markdown
Collaborator

@zjw1111 zjw1111 commented May 29, 2026

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

Generative AI tooling

No

Copilot AI review requested due to automatic review settings May 29, 2026 05:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates MemorySegmentUtils::EqualsMultiSegments to address a clang-tidy warning by simplifying the computation of the minimum comparable length across two segment windows.

Changes:

  • Replaces nested std::min(std::min(...), ...) with a single std::min({ ... }) initializer-list call for readability and lint compliance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator

@lxy-9602 lxy-9602 left a comment

Choose a reason for hiding this comment

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

+1

@lxy-9602 lxy-9602 merged commit 5fdc435 into alibaba:main May 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants