Enable misc clang-tidy checks (#110283)

This PR enables the misc-XX checks in clang-tidy. Meanwhile, I excluded some of them that require a lot of code changes and have no immediate benefits. Some additional fixes and suppression were also given.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/110283
Approved by: https://github.com/albanD
This commit is contained in:
cyy
2023-09-30 10:39:52 +00:00
committed by PyTorch MergeBot
parent 2ead6c2f6e
commit d0ad848aa5
13 changed files with 22 additions and 7 deletions

View File

@ -422,6 +422,7 @@ PyTypeObject THPEngineType = {
nullptr, /* tp_getattro */
nullptr, /* tp_setattro */
nullptr, /* tp_as_buffer */
// NOLINTNEXTLINE(misc-redundant-expression)
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
nullptr, /* tp_doc */
nullptr, /* tp_traverse */