mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix clang-tidy cppcoreguidelines-macro-usage findings (macro functions)
This commit is contained in:
parent
ad99a6821e
commit
460fe24a9a
23 changed files with 75 additions and 47 deletions
|
@ -41,6 +41,8 @@ void TCPStateStats::PrintStats(File* file, const char* prefix) {
|
|||
file->Write(prefix);
|
||||
|
||||
switch ( i ) {
|
||||
// This macro really doesn't save us much typing, if that was the intention
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
|
||||
#define STATE_STRING(state, str) \
|
||||
case state: file->Write(str); break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue