Fix clang-tidy bugprone* warnings (#148529)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/148529
Approved by: https://github.com/ezyang
This commit is contained in:
Yuanyuan Chen
2025-06-23 23:09:56 +00:00
committed by PyTorch MergeBot
parent 3f920f3d8f
commit 07bb097698
28 changed files with 74 additions and 79 deletions

View File

@ -817,6 +817,7 @@ static PyObject* THPVariable_get_python_dispatch(
// - static Tensor fn(const Tensor&);
// - This function calls the relevant ATen on the tensor
template <typename T>
// NOLINTNEXTLINE(bugprone-crtp-constructor-accessibility)
struct GetterBase {
static PyObject* getter(THPVariable* self, void* /*unused*/) {
HANDLE_TH_ERRORS