feat(tidy): add fairmq-performance-channel-lookup-in-loop

- Report GetChannel() and GetChannels() calls in an override of
  ConditionalRun() or in a loop in an override of Run(). Each call
  looks up the channel name in a map.
- Skip the short form Send(msg, "name"): it is the usual style.

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 349573fb5f
commit 4ccf75fa47
6 changed files with 179 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ endif()
# The fairmq-* checks as a clang-tidy module.
add_library(fairmq-tidy-module OBJECT
ChannelLookupInLoopCheck.cxx
ChannelLookupInLoopCheck.h
ChannelsAccessCheck.cxx
ChannelsAccessCheck.h
DeprecatedFunctionsCheck.cxx