[Distributed] [19/N] Fix clang-tidy warnings in torch/csrc/distributed/ (#138903)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/138903
Approved by: https://github.com/ezyang
This commit is contained in:
cyy
2024-10-28 05:29:23 +00:00
committed by PyTorch MergeBot
parent 39aa3cb8d6
commit f9ae3fac8c
16 changed files with 43 additions and 34 deletions

View File

@ -370,7 +370,7 @@ class NCCLComm {
NCCLComm& operator=(NCCLComm&& other) = delete;
// Move constructable
// NOLINTNEXTLINE(.*-noexcept-move-.*)
// NOLINTNEXTLINE(*-noexcept-move-*)
NCCLComm(NCCLComm&& other) {
// Using other's lock, as it reads other's states
// Can not use this.mutex_, as this object is being constructed.