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

iox-#2277 Add nodiscard to iox containers when pushing/emplacing fails #2280

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pbarone-latai
Copy link
Contributor

Notes for Reviewer

This PR adds [[nodiscard]] on any iox container APIs which may fail and return false if a container is at capacity

Pre-Review Checklist for the PR Author

  1. Code follows the coding style of CONTRIBUTING.md
  2. Tests follow the best practice for testing
  3. Changelog updated in the unreleased section including API breaking changes
  4. Branch follows the naming format (iox-123-this-is-a-branch)
  5. Commits messages are according to this guideline
  6. Update the PR title
    • Follow the same conventions as for commit messages
    • Link to the relevant issue
  7. Relevant issues are linked
  8. Add sensible notes for the reviewer
  9. All checks have passed (except task-list-completed)
  10. Assign PR to reviewer

Checklist for the PR Reviewer

  • Consider a second reviewer for complex new features or larger refactorings
  • Commits are properly organized and messages are according to the guideline
  • Code according to our coding style and naming conventions
  • Unit tests have been written for new behavior
  • Public API changes are documented via doxygen
  • Copyright owner are updated in the changed files
  • All touched (C/C++) source code files from iceoryx_hoofs have been added to ./clang-tidy-diff-scans.txt
  • PR title describes the changes

Post-review Checklist for the PR Author

  1. All open points are addressed and tracked via issues

References

…/emplacing fails

Signed-off-by: Patrick Barone <pbarone@lat.ai>
@elBoberido
Copy link
Member

@pbarone-latai any updates on your side?

The issue is that there are quite a few places which now potentially need a IOX_DISCARD_RESULT or an actual check for the return value

@pbarone-latai
Copy link
Contributor Author

Yeah, unfortunately no update on my end. It was a bit more involved than I initially thought. I don't anticipate having time to do this for a little while, though I do really think it would be worthwhile, both for consumers as well as for iceoryx in general. I'm fine closing the ticket if you don't want to leave the open ticket around

@elBoberido
Copy link
Member

@pbarone-latai no problem. Keep your time. It is not necessary to close the PR if you intend to work on it later :)

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.

Mark iox container operations which return bool as [[nodiscard]]
2 participants