Switch from header guards to pragma once

This commit is contained in:
Dominik Charousset 2019-09-17 14:10:30 +02:00
parent 83180a2553
commit c1f3fe7829
254 changed files with 260 additions and 1008 deletions

View file

@ -1,7 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#ifndef LOGGING_COMPONENT_H
#define LOGGING_COMPONENT_H
#pragma once
#include "Tag.h"
#include "plugin/Component.h"
@ -62,5 +61,3 @@ private:
};
}
#endif

View file

@ -2,8 +2,7 @@
//
// A class managing log writers and filters.
#ifndef LOGGING_MANAGER_H
#define LOGGING_MANAGER_H
#pragma once
#include <broker/endpoint_info.hh>
@ -279,5 +278,3 @@ private:
}
extern logging::Manager* log_mgr;
#endif

View file

@ -1,7 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#ifndef LOGGING_TAG_H
#define LOGGING_TAG_H
#pragma once
#include "zeek-config.h"
#include "util.h"
@ -114,5 +113,3 @@ protected:
};
}
#endif

View file

@ -2,8 +2,7 @@
//
// Bridge class between main process and writer threads.
#ifndef LOGGING_WRITERBACKEND_H
#define LOGGING_WRITERBACKEND_H
#pragma once
#include "threading/MsgThread.h"
@ -390,6 +389,3 @@ private:
}
#endif

View file

@ -1,7 +1,6 @@
// See the file "COPYING" in the main distribution directory for copyright.
#ifndef LOGGING_WRITERFRONTEND_H
#define LOGGING_WRITERFRONTEND_H
#pragma once
#include "WriterBackend.h"
@ -212,5 +211,3 @@ protected:
};
}
#endif

View file

@ -2,8 +2,7 @@
//
// Log writer for delimiter-separated ASCII logs.
#ifndef LOGGING_WRITER_ASCII_H
#define LOGGING_WRITER_ASCII_H
#pragma once
#include "logging/WriterBackend.h"
#include "threading/formatters/Ascii.h"
@ -76,5 +75,3 @@ private:
}
}
#endif

View file

@ -2,8 +2,7 @@
//
// Dummy log writer that just discards everything (but still pretends to rotate).
#ifndef LOGGING_WRITER_NONE_H
#define LOGGING_WRITER_NONE_H
#pragma once
#include "logging/WriterBackend.h"
@ -32,5 +31,3 @@ protected:
}
}
#endif

View file

@ -2,8 +2,7 @@
//
// Log writer for SQLITE logs.
#ifndef LOGGING_WRITER_SQLITE_H
#define LOGGING_WRITER_SQLITE_H
#pragma once
#include "zeek-config.h"
@ -54,6 +53,3 @@ private:
}
}
#endif /* LOGGING_WRITER_SQLITE_H */