mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Reformat Zeek in Spicy style
This largely copies over Spicy's `.clang-format` configuration file. The one place where we deviate is header include order since Zeek depends on headers being included in a certain order.
This commit is contained in:
parent
7b8e7ed72c
commit
f5a76c1aed
786 changed files with 131714 additions and 153609 deletions
|
@ -6,34 +6,29 @@
|
|||
#include "foo.bif.h"
|
||||
#include "foo_pac.h"
|
||||
|
||||
namespace btest::analyzer::FOO
|
||||
{
|
||||
namespace btest::analyzer::FOO {
|
||||
|
||||
class FOO_Analyzer : public zeek::analyzer::tcp::TCP_ApplicationAnalyzer
|
||||
{
|
||||
class FOO_Analyzer : public zeek::analyzer::tcp::TCP_ApplicationAnalyzer {
|
||||
public:
|
||||
FOO_Analyzer(zeek::Connection* conn);
|
||||
virtual ~FOO_Analyzer();
|
||||
FOO_Analyzer(zeek::Connection* conn);
|
||||
virtual ~FOO_Analyzer();
|
||||
|
||||
// Overridden from Analyzer.
|
||||
virtual void Done();
|
||||
// Overridden from Analyzer.
|
||||
virtual void Done();
|
||||
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
virtual void Undelivered(uint64_t seq, int len, bool orig);
|
||||
virtual void DeliverStream(int len, const u_char* data, bool orig);
|
||||
virtual void Undelivered(uint64_t seq, int len, bool orig);
|
||||
|
||||
// Overridden from tcp::TCP_ApplicationAnalyzer.
|
||||
virtual void EndpointEOF(bool is_orig);
|
||||
// Overridden from tcp::TCP_ApplicationAnalyzer.
|
||||
virtual void EndpointEOF(bool is_orig);
|
||||
|
||||
static zeek::analyzer::Analyzer* InstantiateAnalyzer(zeek::Connection* conn)
|
||||
{
|
||||
return new FOO_Analyzer(conn);
|
||||
}
|
||||
static zeek::analyzer::Analyzer* InstantiateAnalyzer(zeek::Connection* conn) { return new FOO_Analyzer(conn); }
|
||||
|
||||
protected:
|
||||
binpac::FOO::FOO_Conn* interp;
|
||||
bool had_gap;
|
||||
};
|
||||
binpac::FOO::FOO_Conn* interp;
|
||||
bool had_gap;
|
||||
};
|
||||
|
||||
} // namespace btest::analyzer::FOO
|
||||
} // namespace btest::analyzer::FOO
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue