clang-format: Other include ordering changes

This commit is contained in:
Tim Wojtulewicz 2021-09-24 14:57:22 -07:00
parent cb99ae2b7c
commit e97c14add5
5 changed files with 13 additions and 3 deletions

View file

@ -4,9 +4,11 @@
#include "zeek/zeek-config.h" #include "zeek/zeek-config.h"
// clang-format off
#include <sys/types.h> // for u_char
#include <netinet/in.h> #include <netinet/in.h>
#include <netinet/ip.h> #include <netinet/ip.h>
#include <sys/types.h> // for u_char // clang-format on
#ifdef HAVE_NETINET_IP6_H #ifdef HAVE_NETINET_IP6_H
#include <netinet/ip6.h> #include <netinet/ip6.h>

View file

@ -3,8 +3,12 @@
#include "zeek/iosource/Manager.h" #include "zeek/iosource/Manager.h"
#include <assert.h> #include <assert.h>
// These two files have to remain in the same order or FreeBSD builds
// stop working.
// clang-format off
#include <sys/types.h> #include <sys/types.h>
#include <sys/event.h> #include <sys/event.h>
// clang-format on
#include <sys/time.h> #include <sys/time.h>
#include <unistd.h> #include <unistd.h>

View file

@ -2,9 +2,11 @@
#pragma once #pragma once
// clang-format off
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/types.h> #include <sys/types.h>
#include <net/if_arp.h> #include <net/if_arp.h>
// clang-format on
#include "zeek/packet_analysis/Analyzer.h" #include "zeek/packet_analysis/Analyzer.h"
#include "zeek/packet_analysis/Component.h" #include "zeek/packet_analysis/Component.h"

View file

@ -7,9 +7,9 @@
#include <set> #include <set>
#include "zeek/IntrusivePtr.h"
#include "zeek/ID.h"
#include "zeek/Expr.h" #include "zeek/Expr.h"
#include "zeek/ID.h"
#include "zeek/IntrusivePtr.h"
namespace zeek::detail namespace zeek::detail
{ {

View file

@ -28,8 +28,10 @@ bool set_affinity(int core_number)
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
// clang-format off
#include <sys/param.h> #include <sys/param.h>
#include <sys/cpuset.h> #include <sys/cpuset.h>
// clang-format on
namespace zeek namespace zeek
{ {