Skip to content

Conversation

@bobtista
Copy link

@bobtista bobtista commented Dec 6, 2025

Ran clang-tidy (readability-container-size-empty))

@bobtista bobtista force-pushed the bobtista/refactor/clang-tidy-container-empty branch from d87241f to 9174538 Compare December 6, 2025 19:02
@bobtista bobtista added Minor Severity: Minor < Major < Critical < Blocker Refactor Edits the code with insignificant behavior changes, is never user facing labels Dec 6, 2025
Copy link

@xezon xezon left a comment

Choose a reason for hiding this comment

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

Nice improvement. With std::list from STLPort this can give small performance gains too.

m_playerColors[i] = 0;
}
if (incomingRequest.password.length() > 0)
if (!incomingRequest.password.empty())
Copy link

Choose a reason for hiding this comment

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

I suspect clang-tidy only finds std:: related cases, unless it can be configured for other types?

We still need the same kind of change for AsciiString and other internal types (in another change).

@xezon xezon added the Performance Is a performance concern label Dec 7, 2025
@xezon xezon added this to the Code foundation build up milestone Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Minor Severity: Minor < Major < Critical < Blocker Performance Is a performance concern Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants