mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
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:
@ -216,6 +216,7 @@ PyTypeObject* _initFunctionPyTypeObject(
|
||||
const char* name,
|
||||
PyGetSetDef* function_properties,
|
||||
PyMethodDef* function_methods) {
|
||||
// NOLINTNEXTLINE(misc-redundant-expression)
|
||||
type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC;
|
||||
type.tp_name = name;
|
||||
type.tp_basicsize = sizeof(THPCppFunction);
|
||||
|
Reference in New Issue
Block a user