Reformat the world

This commit is contained in:
Tim Wojtulewicz 2021-09-16 15:35:39 -07:00
parent 194cb24547
commit b2f171ec69
714 changed files with 35149 additions and 35203 deletions

View file

@ -5,7 +5,8 @@
#include "zeek/Desc.h"
#include "zeek/Reporter.h"
namespace zeek::plugin {
namespace zeek::plugin
{
Component::Component(component::Type arg_type, const std::string& arg_name)
{
@ -14,9 +15,7 @@ Component::Component(component::Type arg_type, const std::string& arg_name)
canon_name = util::canonify_name(name);
}
Component::~Component()
{
}
Component::~Component() { }
const std::string& Component::Name() const
{
@ -33,48 +32,49 @@ void Component::Describe(ODesc* d) const
d->Add(" ");
d->Add("[");
switch ( type ) {
case component::READER:
d->Add("Reader");
break;
switch ( type )
{
case component::READER:
d->Add("Reader");
break;
case component::WRITER:
d->Add("Writer");
break;
case component::WRITER:
d->Add("Writer");
break;
case component::ANALYZER:
d->Add("Analyzer");
break;
case component::ANALYZER:
d->Add("Analyzer");
break;
case component::PACKET_ANALYZER:
d->Add("Packet Analyzer");
break;
case component::PACKET_ANALYZER:
d->Add("Packet Analyzer");
break;
case component::FILE_ANALYZER:
d->Add("File Analyzer");
break;
case component::FILE_ANALYZER:
d->Add("File Analyzer");
break;
case component::IOSOURCE:
d->Add("I/O Source");
break;
case component::IOSOURCE:
d->Add("I/O Source");
break;
case component::PKTSRC:
d->Add("Packet Source");
break;
case component::PKTSRC:
d->Add("Packet Source");
break;
case component::PKTDUMPER:
d->Add("Packet Dumper");
break;
case component::PKTDUMPER:
d->Add("Packet Dumper");
break;
case component::SESSION_ADAPTER:
d->Add("Session Adapter");
break;
case component::SESSION_ADAPTER:
d->Add("Session Adapter");
break;
default:
reporter->InternalWarning("unknown component type in plugin::Component::Describe");
d->Add("<unknown component type>");
break;
}
default:
reporter->InternalWarning("unknown component type in plugin::Component::Describe");
d->Add("<unknown component type>");
break;
}
d->Add("]");
d->Add(" ");
@ -84,4 +84,4 @@ void Component::Describe(ODesc* d) const
d->Add(")");
}
} // namespace zeek::plugin
} // namespace zeek::plugin