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 [[nodiscard]] attribute #247

Open
PJK opened this issue Dec 27, 2022 · 0 comments
Open

Add [[nodiscard]] attribute #247

PJK opened this issue Dec 27, 2022 · 0 comments

Comments

@PJK
Copy link
Owner

PJK commented Dec 27, 2022

c2x introduces language-level nodiscard attribute. We should use it in a backwards-compatible way for all functions that can fail, not checking the return value has caused bug even internally (e.g. #246)

https://clang.llvm.org/docs/AttributeReference.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant