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

[gmock] Rename struct Result to avoid shadowing #4221

Closed
wants to merge 0 commits into from

Conversation

pgawro
Copy link
Contributor

@pgawro pgawro commented Apr 18, 2023

Struct Result shadows global definition of class Result in gmock-spec-builders_test.cc inside ExpectCallTest.NonMoveableType test

@google-cla
Copy link

google-cla bot commented Apr 18, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

@ankit-gautam23 ankit-gautam23 left a comment

Choose a reason for hiding this comment

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

Changing just the case won't help much. We can think of some better name.

@dinord dinord self-assigned this Apr 19, 2023
@pgawro
Copy link
Contributor Author

pgawro commented Apr 20, 2023

@ankit-gautam23 I agree, so maybe let's change that struct name to something to one of this: NonMoveableType, NonMoveableStruct, NonMoveableData, NonMoveableTestData or just NonMoveable. Or perhaps you have diffrent proposition?
Sorry I dind't respond yesterday I was short on time after my work

@ankit-gautam23
Copy link

@TurboGawron Its truly okay. I will update this and raise the PR. Will add you as a reviewer. Thanks

ankit-gautam23 added a commit to ankit-gautam23/googletest that referenced this pull request Apr 21, 2023
struct Result {
explicit Result(int x_in) : x(x_in) {}
Result(Result&&) = delete;
struct result {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we name it NonMoveableStruct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

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.

3 participants