mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Reformat the world
This commit is contained in:
parent
194cb24547
commit
b2f171ec69
714 changed files with 35149 additions and 35203 deletions
|
@ -1,20 +1,22 @@
|
|||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <utility>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "zeek/util.h"
|
||||
|
||||
namespace zeek::detail {
|
||||
namespace zeek::detail
|
||||
{
|
||||
|
||||
class Stmt;
|
||||
|
||||
/**
|
||||
* A simple class for managing stats of Bro script coverage across Bro runs.
|
||||
*/
|
||||
class ScriptCoverageManager {
|
||||
class ScriptCoverageManager
|
||||
{
|
||||
public:
|
||||
ScriptCoverageManager();
|
||||
virtual ~ScriptCoverageManager();
|
||||
|
@ -74,17 +76,20 @@ private:
|
|||
* A canonicalization routine for Stmt descriptions containing characters
|
||||
* that don't agree with the output format of ScriptCoverageManager.
|
||||
*/
|
||||
struct canonicalize_desc {
|
||||
struct canonicalize_desc
|
||||
{
|
||||
char delim;
|
||||
|
||||
void operator() (char& c)
|
||||
void operator()(char& c)
|
||||
{
|
||||
if ( c == '\n' ) c = ' ';
|
||||
if ( c == delim ) c = ' ';
|
||||
if ( c == '\n' )
|
||||
c = ' ';
|
||||
if ( c == delim )
|
||||
c = ' ';
|
||||
}
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
extern ScriptCoverageManager script_coverage_mgr;
|
||||
|
||||
} // namespace zeek::detail
|
||||
} // namespace zeek::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue