Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend clang-tidy unit overflow check to watt and kilowatt #71848

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

BrettDong
Copy link
Member

Summary

None

Purpose of change

More static analysis to find potential overflows in converting kilowatt or watt to internal milliwatt representation in 32-bit integer.

Describe the solution

Re-use the existing infra for energy overflow check and then apply auto code transformations.

Describe alternatives you've considered

Testing

Additional context

@github-actions github-actions bot added Vehicles Vehicles, parts, mechanics & interactions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tooling Tooling that is not part of the main game but is part of the repo. labels Feb 19, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Auto-requesting reviews from non-collaborators: @jbytheway

@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Feb 19, 2024
@ZhilkinSerg ZhilkinSerg merged commit e09b367 into CleverRaven:master Feb 19, 2024
28 checks passed
@BrettDong BrettDong deleted the power-overflow branch February 20, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants