Skip to content

[cleanup](iwyu) Remove unnecessary #include <algorithm> from 60 files#61526

Open
shuke987 wants to merge 1 commit intoapache:masterfrom
shuke987:iwyu-cleanup-algorithm
Open

[cleanup](iwyu) Remove unnecessary #include <algorithm> from 60 files#61526
shuke987 wants to merge 1 commit intoapache:masterfrom
shuke987:iwyu-cleanup-algorithm

Conversation

@shuke987
Copy link
Copy Markdown
Collaborator

Summary

  • Remove unnecessary #include <algorithm> from 60 BE source files
  • These files do not directly use std::sort, std::min, std::max, std::find, or other <algorithm> functions
  • The header is transitively available through other included headers

Identified by include-what-you-use (IWYU 0.24 / Clang 20) analysis.

Test plan

  • Full BE incremental build passes with zero compilation errors
  • CI pipeline

🤖 Generated with Claude Code

IWYU analysis identified these files do not directly use std::algorithm
functions (std::sort, std::min, std::max, etc.). The header is
transitively available through other included headers.

Verified: full BE incremental build passes with zero compilation errors.
@Thearas
Copy link
Copy Markdown
Contributor

Thearas commented Mar 19, 2026

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@github-actions
Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants