feat(tidy): add fairmq-readability-transfer-code

- Replace -1, -2 and -3 in == and != comparisons with the result of
  Send() or Receive() by static_cast<int64_t>(fair::mq::TransferCode::X).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-09 23:14:01 +00:00
parent e9afe76155
commit b113f0a7d8
6 changed files with 141 additions and 0 deletions

View File

@@ -49,6 +49,8 @@ add_library(fairmq-tidy-module OBJECT
RunDeviceCheck.h
Transfer.cxx
Transfer.h
TransferCodeCheck.cxx
TransferCodeCheck.h
UncheckedTransferResultCheck.cxx
UncheckedTransferResultCheck.h
UseAfterSendCheck.cxx