-
Notifications
You must be signed in to change notification settings - Fork 25.1k
[lint] Disable modernize-use-nodiscard #68354
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
Conversation
Summary: Lint rule: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nodiscard.html This check adds a ton of noise to our diffs. `[[nodiscard]]` is typically only useful when ignoring the return value of a function is a critical error, e.g. for `operator new`. Test Plan: Verified that the lint does not get triggered Differential Revision: D32429731 fbshipit-source-id: 5a2e163a15a8f8f716bb819e35697af73c5a753d
CI Flow Status⚛️ CI FlowRuleset - Version:
You can add a comment to the PR and tag @pytorchbot with the following commands: # ciflow rerun, "ciflow/default" will always be added automatically
@pytorchbot ciflow rerun
# ciflow rerun with additional labels "-l <ciflow/label_name>", which is equivalent to adding these labels manually and trigger the rerun
@pytorchbot ciflow rerun -l ciflow/scheduled -l ciflow/slow For more information, please take a look at the CI Flow Wiki. |
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit 0ec65ca (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
This pull request was exported from Phabricator. Differential Revision: D32429731 |
This pull request has been merged in ccd9675. |
Summary:
Lint rule: https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nodiscard.html
This check adds a ton of noise to our diffs.
[[nodiscard]]
is typically only useful when ignoring the return value of a function is a critical error, e.g. foroperator new
.Test Plan: Verified that the lint does not get triggered
Differential Revision: D32429731