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

fix: clang-tidy CI failure #3837

Merged
merged 2 commits into from
Dec 8, 2023
Merged

Conversation

scarf005
Copy link
Member

@scarf005 scarf005 commented Dec 7, 2023

Purpose of change

fix clang-tidy CI failures happening for weeks.

Describe the solution

fix errors pointed by clang-tidy

Describe alternatives you've considered

RIIR

Testing

tests pass locally.

@github-actions github-actions bot added the src changes related to source code. label Dec 7, 2023
unsure whether it's true positive or false positive.
@@ -1437,6 +1437,7 @@ item &location_inventory::add_item_by_items_type_cache( detached_ptr<item> &&new
if( should_stack ) {
for( auto &elem : inv.items ) {
item *&it = *elem.begin();
// NOLINTNEXTLINE(bugprone-use-after-move)
if( it->stacks_with( *newit ) ) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@joveeater could you check whether this warning is false positive or not?

Copy link
Collaborator

@joveeater joveeater left a comment

Choose a reason for hiding this comment

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

LGTM

@scarf005 scarf005 added this pull request to the merge queue Dec 8, 2023
Merged via the queue into cataclysmbnteam:upload with commit ef5e97c Dec 8, 2023
14 checks passed
@scarf005 scarf005 deleted the fix-clang-tidy branch December 8, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
src changes related to source code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants