mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
binpac: Fix a large number of clang-tidy warnings
This commit is contained in:
parent
4dc546f8c8
commit
31b65f70da
48 changed files with 231 additions and 193 deletions
|
@ -1,8 +1,8 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h> // for memcpy
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring> // for memcpy
|
||||
|
||||
#define binpac_regex_h
|
||||
|
||||
|
@ -82,7 +82,7 @@ void FlowBuffer::ResetLineState() {
|
|||
case CR_OR_LF: state_ = CR_OR_LF_0; break;
|
||||
case STRICT_CRLF: state_ = STRICT_CRLF_0; break;
|
||||
case LINE_BREAKER: break; // Nothing to reset
|
||||
default: BINPAC_ASSERT(0); break;
|
||||
default: BINPAC_ASSERT(false); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,7 @@ void FlowBuffer::MarkOrCopyLine() {
|
|||
case CR_OR_LF: MarkOrCopyLine_CR_OR_LF(); break;
|
||||
case STRICT_CRLF: MarkOrCopyLine_STRICT_CRLF(); break;
|
||||
case LINE_BREAKER: MarkOrCopyLine_LINEBREAK(); break;
|
||||
default: BINPAC_ASSERT(0); break;
|
||||
default: BINPAC_ASSERT(false); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue