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

Add clang tidy and CI #216

Merged
merged 13 commits into from
Jun 4, 2024
Merged

Add clang tidy and CI #216

merged 13 commits into from
Jun 4, 2024

Conversation

externl
Copy link
Member

@externl externl commented Jun 3, 2024

Add .clang-tidy file with a few configured checks.

@externl externl changed the title clang tidy Add clang tidy and CI Jun 3, 2024
@externl externl requested a review from pepone June 4, 2024 14:48
@externl externl marked this pull request as ready for review June 4, 2024 14:48
}
if (number)
{
contact->number = std::move(number);
contact->number = number;
Copy link
Member

Choose a reason for hiding this comment

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

What was the problem with this std::move call?

Copy link
Member Author

Choose a reason for hiding this comment

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

This type is trivially copyable. Using std::move doesn't do anything.

Copy link
Member

Choose a reason for hiding this comment

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

I guess we want to do std::move(*number) to move the string?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removing for number was a mistake. I've added it back.

@externl externl merged commit 0ca9737 into zeroc-ice:main Jun 4, 2024
6 checks passed
@externl externl deleted the clang-tidy branch June 4, 2024 17:08
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.

2 participants