Skip to content

Conversation

@copybara-service
Copy link

Add [[nodiscard]] to many const methods of Message/Reflection.

Ignoring the return value likely indicates an omission on the part of the
caller, an error by confusing it with explicit presence fields (like scalar
submessages or strings), or a call that can be cleaned up. This change is
intended to preserve the present (no-op) behavior.

Ignoring the return value likely indicates an omission on the part of the
caller, an error by confusing it with explicit presence fields (like scalar
submessages or strings), or a call that can be cleaned up.  This change is
intended to preserve the present (no-op) behavior.

PiperOrigin-RevId: 827993422
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.

1 participant