clang-tidy header include order

This commit is contained in:
Erik Frojdh 2020-01-16 14:00:43 +01:00
parent bcb4942793
commit 9ac08ad5c9
16 changed files with 29 additions and 29 deletions

View File

@ -17,13 +17,13 @@
/*! \file document.h */ /*! \file document.h */
#include "reader.h" #include "encodedstream.h"
#include "internal/meta.h" #include "internal/meta.h"
#include "internal/strfunc.h" #include "internal/strfunc.h"
#include "memorystream.h" #include "memorystream.h"
#include "encodedstream.h" #include "reader.h"
#include <new> // placement new
#include <limits> #include <limits>
#include <new> // placement new
RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_PUSH
#ifdef _MSC_VER #ifdef _MSC_VER

View File

@ -15,8 +15,8 @@
#ifndef RAPIDJSON_ENCODEDSTREAM_H_ #ifndef RAPIDJSON_ENCODEDSTREAM_H_
#define RAPIDJSON_ENCODEDSTREAM_H_ #define RAPIDJSON_ENCODEDSTREAM_H_
#include "stream.h"
#include "memorystream.h" #include "memorystream.h"
#include "stream.h"
#ifdef __GNUC__ #ifdef __GNUC__
RAPIDJSON_DIAG_PUSH RAPIDJSON_DIAG_PUSH

View File

@ -15,9 +15,9 @@
#ifndef RAPIDJSON_STRTOD_ #ifndef RAPIDJSON_STRTOD_
#define RAPIDJSON_STRTOD_ #define RAPIDJSON_STRTOD_
#include "ieee754.h"
#include "biginteger.h" #include "biginteger.h"
#include "diyfp.h" #include "diyfp.h"
#include "ieee754.h"
#include "pow10.h" #include "pow10.h"
RAPIDJSON_NAMESPACE_BEGIN RAPIDJSON_NAMESPACE_BEGIN

View File

@ -164,8 +164,8 @@
#include "msinttypes/inttypes.h" #include "msinttypes/inttypes.h"
#else #else
// Other compilers should have this. // Other compilers should have this.
#include <stdint.h>
#include <inttypes.h> #include <inttypes.h>
#include <stdint.h>
#endif #endif
//!@endcond //!@endcond
#ifdef RAPIDJSON_DOXYGEN_RUNNING #ifdef RAPIDJSON_DOXYGEN_RUNNING

View File

@ -18,11 +18,11 @@
/*! \file reader.h */ /*! \file reader.h */
#include "allocators.h" #include "allocators.h"
#include "stream.h"
#include "encodedstream.h" #include "encodedstream.h"
#include "internal/meta.h" #include "internal/meta.h"
#include "internal/stack.h" #include "internal/stack.h"
#include "internal/strtod.h" #include "internal/strtod.h"
#include "stream.h"
#include <limits> #include <limits>
#if defined(RAPIDJSON_SIMD) && defined(_MSC_VER) #if defined(RAPIDJSON_SIMD) && defined(_MSC_VER)

View File

@ -1,5 +1,5 @@
#include <unistd.h>
#include <cstring> #include <cstring>
#include <unistd.h>
#pragma once #pragma once
/** /**
@short data structure to hold the detector data after postprocessing @short data structure to hold the detector data after postprocessing

View File

@ -2,8 +2,8 @@
#include "Detector.h" #include "Detector.h"
#include "Result.h" #include "Result.h"
#include "sls_detector_exceptions.h"
#include "network_utils.h" #include "network_utils.h"
#include "sls_detector_exceptions.h"
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <string> #include <string>

View File

@ -8,10 +8,10 @@
#include "sls_detector_exceptions.h" #include "sls_detector_exceptions.h"
#include "versionAPI.h" #include "versionAPI.h"
#include "ToString.h"
#include "container_utils.h" #include "container_utils.h"
#include "network_utils.h" #include "network_utils.h"
#include "string_utils.h" #include "string_utils.h"
#include "ToString.h"
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>

View File

@ -1,12 +1,12 @@
#include "slsDetector.h" #include "slsDetector.h"
#include "ClientSocket.h" #include "ClientSocket.h"
#include "SharedMemory.h" #include "SharedMemory.h"
#include "ToString.h"
#include "file_utils.h" #include "file_utils.h"
#include "network_utils.h" #include "network_utils.h"
#include "sls_detector_exceptions.h" #include "sls_detector_exceptions.h"
#include "string_utils.h" #include "string_utils.h"
#include "versionAPI.h" #include "versionAPI.h"
#include "ToString.h"
#include <arpa/inet.h> #include <arpa/inet.h>
#include <array> #include <array>

View File

@ -9,9 +9,9 @@
#include "TimeHelper.h" #include "TimeHelper.h"
#include "TypeTraits.h" #include "TypeTraits.h"
#include "sls_detector_defs.h"
#include "sls_detector_exceptions.h" #include "sls_detector_exceptions.h"
#include "string_utils.h" #include "string_utils.h"
#include "sls_detector_defs.h"
#include <chrono> #include <chrono>
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>

View File

@ -10,15 +10,15 @@
#include "ansi.h" #include "ansi.h"
#include "sls_detector_exceptions.h" #include "sls_detector_exceptions.h"
#include <iostream>
#include <zmq.h>
#include <errno.h>
#include <netdb.h> //gethostbyname()
#include <arpa/inet.h> //inet_ntoa #include <arpa/inet.h> //inet_ntoa
#include <errno.h>
#include <iostream>
#include <netdb.h> //gethostbyname()
#include <rapidjson/document.h> //json header in zmq stream #include <rapidjson/document.h> //json header in zmq stream
#include <string.h> #include <string.h>
#include <unistd.h> //usleep in some machines #include <unistd.h> //usleep in some machines
#include <vector> #include <vector>
#include <zmq.h>
using namespace rapidjson; using namespace rapidjson;

View File

@ -3,9 +3,9 @@
#include "sls_detector_defs.h" #include "sls_detector_defs.h"
#include <string> #include <cstdio>
#include <fstream> #include <fstream>
#include <stdio.h> #include <string>
/** (used by multi and sls) /** (used by multi and sls)

View File

@ -1,10 +1,10 @@
#pragma once #pragma once
#include <sstream>
#include <string>
#include <stdio.h>
#include <unistd.h>
#include <ansi.h> #include <ansi.h>
#include <sstream>
#include <stdio.h>
#include <string>
#include <unistd.h>

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <array>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <array>
namespace sls { namespace sls {
@ -10,8 +10,8 @@ class IpAddr {
uint32_t addr_{0}; uint32_t addr_{0};
public: public:
constexpr IpAddr() noexcept{} constexpr IpAddr() noexcept = default;
constexpr IpAddr(uint32_t address) noexcept : addr_{address} {} explicit constexpr IpAddr(uint32_t address) noexcept : addr_{address} {}
IpAddr(const std::string &address); IpAddr(const std::string &address);
IpAddr(const char *address); IpAddr(const char *address);
std::string str() const; std::string str() const;
@ -38,8 +38,8 @@ class MacAddr {
std::string to_hex(const char delimiter = 0) const; std::string to_hex(const char delimiter = 0) const;
public: public:
constexpr MacAddr() noexcept{} constexpr MacAddr() noexcept = default;
constexpr MacAddr(uint64_t mac) noexcept : addr_{mac} {} explicit constexpr MacAddr(uint64_t mac) noexcept : addr_{mac} {}
MacAddr(std::string mac); MacAddr(std::string mac);
MacAddr(const char *address); MacAddr(const char *address);
std::string str() const; std::string str() const;

View File

@ -20,8 +20,8 @@
//C++ includes //C++ includes
#include "sls_detector_exceptions.h" #include "sls_detector_exceptions.h"
#include <algorithm> #include <algorithm>
#include <cstdint>
#include <bitset> #include <bitset>
#include <cstdint>
#include <string> #include <string>
#else #else
//C includes //C includes

View File

@ -54,7 +54,7 @@ public:
GuiError(const std::string& msg):RuntimeError(msg) {} GuiError(const std::string& msg):RuntimeError(msg) {}
}; };
} // namespce sls } // namespace sls