pytorch
ccd96755 - [lint] Disable modernize-use-nodiscard (#68354)

Commit
4 years ago
[lint] Disable modernize-use-nodiscard (#68354) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/68354 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 Reviewed By: hlu1 Differential Revision: D32429731 fbshipit-source-id: ca3d90686ec8d419d3f96167140dc406df6f4a53
Author
Mike Iovine
Parents
Loading