refactor(Core/Common): alphabetical sorting inlcudes (#6282)

- Part https://github.com/WarheadCore/WarheadBand/pull/37
This commit is contained in:
Kargatum
2021-06-23 06:01:53 +07:00
committed by GitHub
parent b2472caeed
commit 8202da358b
56 changed files with 109 additions and 109 deletions

View File

@@ -7,9 +7,9 @@
#ifndef _BIH_H
#define _BIH_H
#include "G3D/Vector3.h"
#include "G3D/Ray.h"
#include "G3D/AABox.h"
#include "G3D/Ray.h"
#include "G3D/Vector3.h"
#include "Define.h"

View File

@@ -7,10 +7,10 @@
#ifndef _BIH_WRAP
#define _BIH_WRAP
#include "G3D/Table.h"
#include "BoundingIntervalHierarchy.h"
#include "G3D/Array.h"
#include "G3D/Set.h"
#include "BoundingIntervalHierarchy.h"
#include "G3D/Table.h"
template<class T, class BoundsFunc = BoundsTrait<T>>
class BIHWrap

View File

@@ -6,11 +6,11 @@
#include "DynamicTree.h"
#include "BoundingIntervalHierarchyWrapper.h"
#include "GameObjectModel.h"
#include "Log.h"
#include "ModelInstance.h"
#include "RegularGrid.h"
#include "Timer.h"
#include "GameObjectModel.h"
#include "ModelInstance.h"
#include <G3D/AABox.h>
#include <G3D/Ray.h>
#include <G3D/Vector3.h>

View File

@@ -7,8 +7,8 @@
#ifndef _IMMAPMANAGER_H
#define _IMMAPMANAGER_H
#include <string>
#include "Define.h"
#include <string>
// Interface for IMMapManger
namespace MMAP

View File

@@ -7,8 +7,8 @@
#ifndef _IVMAPMANAGER_H
#define _IVMAPMANAGER_H
#include <string>
#include "Define.h"
#include <string>
//===========================================================

View File

@@ -5,8 +5,8 @@
*/
#include "MMapFactory.h"
#include <set>
#include <cstring>
#include <set>
namespace MMAP
{

View File

@@ -7,10 +7,10 @@
#ifndef _MMAP_FACTORY_H
#define _MMAP_FACTORY_H
#include "MMapManager.h"
#include "DetourAlloc.h"
#include "DetourNavMesh.h"
#include "DetourExtended.h"
#include "DetourNavMesh.h"
#include "MMapManager.h"
#include <unordered_map>
namespace MMAP

View File

@@ -7,8 +7,8 @@
#include "MMapManager.h"
#include "Config.h"
#include "Errors.h"
#include "MapDefines.h"
#include "Log.h"
#include "MapDefines.h"
#include "StringFormat.h"
namespace MMAP

View File

@@ -9,10 +9,10 @@
#include "Common.h"
#include "DetourAlloc.h"
#include "DetourNavMesh.h"
#include "DetourExtended.h"
#include <unordered_map>
#include "DetourNavMesh.h"
#include <shared_mutex>
#include <unordered_map>
#include <vector>
// memory management

View File

@@ -16,18 +16,18 @@
*/
#include "VMapManager2.h"
#include "Errors.h"
#include "Log.h"
#include "MapDefines.h"
#include "MapTree.h"
#include "ModelInstance.h"
#include "WorldModel.h"
#include "MapDefines.h"
#include "Log.h"
#include "VMapDefinitions.h"
#include "Errors.h"
#include "WorldModel.h"
#include <G3D/Vector3.h>
#include <iostream>
#include <iomanip>
#include <string>
#include <iostream>
#include <sstream>
#include <string>
using G3D::Vector3;

View File

@@ -18,8 +18,8 @@
#ifndef _VMAPMANAGER2_H
#define _VMAPMANAGER2_H
#include "IVMapManager.h"
#include "Common.h"
#include "IVMapManager.h"
#include <mutex>
#include <unordered_map>
#include <vector>

View File

@@ -5,15 +5,15 @@
*/
#include "MapTree.h"
#include "ModelInstance.h"
#include "VMapManager2.h"
#include "VMapDefinitions.h"
#include "Log.h"
#include "Errors.h"
#include <string>
#include <sstream>
#include "Log.h"
#include "ModelInstance.h"
#include "VMapDefinitions.h"
#include "VMapManager2.h"
#include <iomanip>
#include <limits>
#include <sstream>
#include <string>
using G3D::Vector3;

View File

@@ -7,8 +7,8 @@
#ifndef _MAPTREE_H
#define _MAPTREE_H
#include "Define.h"
#include "BoundingIntervalHierarchy.h"
#include "Define.h"
#include <unordered_map>
namespace VMAP

View File

@@ -5,13 +5,13 @@
*/
#include "TileAssembler.h"
#include "MapTree.h"
#include "BoundingIntervalHierarchy.h"
#include "VMapDefinitions.h"
#include "MapDefines.h"
#include "MapTree.h"
#include "VMapDefinitions.h"
#include <iomanip>
#include <set>
#include <sstream>
#include <iomanip>
using G3D::Vector3;
using G3D::AABox;

View File

@@ -7,8 +7,8 @@
#ifndef _TILEASSEMBLER_H_
#define _TILEASSEMBLER_H_
#include <G3D/Vector3.h>
#include <G3D/Matrix3.h>
#include <G3D/Vector3.h>
#include <map>
#include <set>

View File

@@ -5,12 +5,12 @@
*/
#include "GameObjectModel.h"
#include "VMapFactory.h"
#include "VMapManager2.h"
#include "VMapDefinitions.h"
#include "WorldModel.h"
#include "Log.h"
#include "Timer.h"
#include "VMapDefinitions.h"
#include "VMapFactory.h"
#include "VMapManager2.h"
#include "WorldModel.h"
using G3D::Vector3;
using G3D::Ray;

View File

@@ -8,10 +8,10 @@
#define _GAMEOBJECT_MODEL_H
#include "Define.h"
#include <G3D/Matrix3.h>
#include <G3D/Vector3.h>
#include <G3D/AABox.h>
#include <G3D/Matrix3.h>
#include <G3D/Ray.h>
#include <G3D/Vector3.h>
namespace VMAP
{

View File

@@ -5,9 +5,9 @@
*/
#include "ModelInstance.h"
#include "WorldModel.h"
#include "MapTree.h"
#include "VMapDefinitions.h"
#include "WorldModel.h"
using G3D::Vector3;
using G3D::Ray;

View File

@@ -8,10 +8,10 @@
#define _MODELINSTANCE_H_
#include "Define.h"
#include <G3D/Matrix3.h>
#include <G3D/Vector3.h>
#include <G3D/AABox.h>
#include <G3D/Matrix3.h>
#include <G3D/Ray.h>
#include <G3D/Vector3.h>
namespace VMAP
{

View File

@@ -5,9 +5,9 @@
*/
#include "WorldModel.h"
#include "MapTree.h"
#include "ModelInstance.h"
#include "VMapDefinitions.h"
#include "MapTree.h"
using G3D::Vector3;
using G3D::Ray;

View File

@@ -7,12 +7,12 @@
#ifndef _WORLDMODEL_H
#define _WORLDMODEL_H
#include "Define.h"
#include "BoundingIntervalHierarchy.h"
#include <G3D/HashTrait.h>
#include <G3D/Vector3.h>
#include "Define.h"
#include <G3D/AABox.h>
#include <G3D/HashTrait.h>
#include <G3D/Ray.h>
#include <G3D/Vector3.h>
namespace VMAP
{

View File

@@ -1,10 +1,10 @@
#ifndef _REGULAR_GRID_H
#define _REGULAR_GRID_H
#include <G3D/Ray.h>
#include <G3D/Table.h>
#include <G3D/BoundsTrait.h>
#include <G3D/PositionTrait.h>
#include <G3D/Ray.h>
#include <G3D/Table.h>
#include "Errors.h"

View File

@@ -8,8 +8,8 @@
#define _VMAPTOOLS_H
#include "Define.h"
#include <G3D/CollisionDetection.h>
#include <G3D/AABox.h>
#include <G3D/CollisionDetection.h>
/**
The Class is mainly taken from G3D/AABSPTree.h but modified to be able to use our internal data structure.

View File

@@ -22,13 +22,13 @@
# endif // !defined(BOOST_ASIO_HAS_MOVE)
# endif // if WARHEAD_COMPILER == WARHEAD_COMPILER_INTEL
#else
#include <sys/types.h>
#include <cstdlib>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <unistd.h>
#include <netdb.h>
#include <cstdlib>
#endif
#if AC_COMPILER == AC_COMPILER_MICROSOFT

View File

@@ -8,8 +8,8 @@
#include "StringConvert.h"
#include "StringFormat.h"
#include "Util.h"
#include <mutex>
#include <fstream>
#include <mutex>
#include <unordered_map>
namespace

View File

@@ -7,9 +7,9 @@
#define CONFIG_H
#include "Define.h"
#include <stdexcept>
#include <string>
#include <vector>
#include <stdexcept>
class ConfigMgr
{

View File

@@ -8,9 +8,9 @@
#include "AuthDefines.h"
#include "BigNumber.h"
#include "Define.h"
#include "Common.h"
#include "CryptoHash.h"
#include "Define.h"
#include <array>
#include <optional>

View File

@@ -5,10 +5,10 @@
#include "Cryptography/BigNumber.h"
#include "Errors.h"
#include <openssl/bn.h>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <memory>
#include <openssl/bn.h>
BigNumber::BigNumber()
: _bn(BN_new())

View File

@@ -10,9 +10,9 @@
#include "Define.h"
#include "Errors.h"
#include <array>
#include <openssl/evp.h>
#include <string>
#include <string_view>
#include <openssl/evp.h>
class BigNumber;

View File

@@ -10,9 +10,9 @@
#include "Define.h"
#include "Errors.h"
#include <array>
#include <openssl/hmac.h>
#include <string>
#include <string_view>
#include <openssl/hmac.h>
class BigNumber;

View File

@@ -3,8 +3,8 @@
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
*/
#include <cstring>
#include "CryptoHash.h"
#include <cstring>
#ifndef AZEROTHCORE_SESSIONKEYGENERATOR_HPP
#define AZEROTHCORE_SESSIONKEYGENERATOR_HPP

View File

@@ -4,11 +4,11 @@
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
#include "DBCFileLoader.h"
#include "Errors.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "DBCFileLoader.h"
#include "Errors.h"
DBCFileLoader::DBCFileLoader() : recordSize(0), recordCount(0), fieldCount(0), stringSize(0), fieldsOffset(nullptr), data(nullptr), stringTable(nullptr) { }

View File

@@ -6,10 +6,10 @@
#include "Errors.h"
#include "StringFormat.h"
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <thread>
#include <cstdarg>
/**
@file Errors.cpp

View File

@@ -3,13 +3,13 @@
#if AC_PLATFORM == AC_PLATFORM_WINDOWS && !defined(__MINGW32__)
#include <dbghelp.h>
#include <mutex>
#include <set>
#include <stack>
#include <stdlib.h>
#include <winnt.h>
#include <winternl.h>
#include <dbghelp.h>
#include <set>
#include <stdlib.h>
#include <stack>
#include <mutex>
#define countof _countof
#define WER_MAX_ARRAY_ELEMENTS_COUNT 10

View File

@@ -8,9 +8,9 @@
#define ACORE_DEFINE_H
#include "CompilerDefs.h"
#include <cstddef>
#include <cinttypes>
#include <climits>
#include <cstddef>
#define ACORE_LITTLEENDIAN 0
#define ACORE_BIGENDIAN 1

View File

@@ -8,10 +8,10 @@
#define ACORE_OBJECTREGISTRY_H
#include "Define.h"
#include <string>
#include <vector>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>
/** ObjectRegistry holds all registry item of the same type
*/

View File

@@ -12,12 +12,12 @@
* types of object at the same time.
*/
#include <map>
#include <unordered_map>
#include <vector>
#include "Define.h"
#include "Dynamic/TypeList.h"
#include "GridRefManager.h"
#include <map>
#include <unordered_map>
#include <vector>
/*
* @class ContainerMapList is a mulit-type container for map elements

View File

@@ -6,10 +6,10 @@
#include "AppenderConsole.h"
#include "LogMessage.h"
#include "SmartEnum.h"
#include "StringFormat.h"
#include "StringConvert.h"
#include "Util.h"
#include "StringFormat.h"
#include "Tokenize.h"
#include "Util.h"
#include <sstream>
#if AC_PLATFORM == AC_PLATFORM_WINDOWS

View File

@@ -9,12 +9,12 @@
#include "Common.h"
#include "Config.h"
#include "Errors.h"
#include "Logger.h"
#include "LogMessage.h"
#include "LogOperation.h"
#include "Logger.h"
#include "StringConvert.h"
#include "Util.h"
#include "Tokenize.h"
#include "Util.h"
#include <chrono>
#include <sstream>

View File

@@ -8,8 +8,8 @@
#include "Define.h"
#include "LogCommon.h"
#include <string>
#include <ctime>
#include <string>
struct LogMessage
{

View File

@@ -4,8 +4,8 @@
*/
#include "LogOperation.h"
#include "Logger.h"
#include "LogMessage.h"
#include "Logger.h"
LogOperation::LogOperation(Logger const* _logger, std::unique_ptr<LogMessage>&& _msg) : logger(_logger), msg(std::forward<std::unique_ptr<LogMessage>>(_msg))
{

View File

@@ -8,8 +8,8 @@
#include "Define.h"
#include "LogCommon.h"
#include <unordered_map>
#include <string>
#include <unordered_map>
class Appender;
struct LogMessage;

View File

@@ -4,8 +4,8 @@
* Copyright (C) 2008-2021 TrinityCore <http://www.trinitycore.org/>
*/
#include "LogCommon.h"
#include "Define.h"
#include "LogCommon.h"
#include "SmartEnum.h"
#include <stdexcept>

View File

@@ -1,6 +1,6 @@
//add here most rarely modified headers to speed up debug build compilation
#include "Common.h"
#include "Log.h"
#include "Errors.h"
#include "Log.h"
#include "TypeList.h"

View File

@@ -7,10 +7,10 @@
#ifndef _PCQ_H
#define _PCQ_H
#include <atomic>
#include <condition_variable>
#include <mutex>
#include <queue>
#include <atomic>
#include <type_traits>
template <typename T>

View File

@@ -7,8 +7,8 @@
#ifndef THREADING_H
#define THREADING_H
#include <thread>
#include <atomic>
#include <thread>
namespace Acore
{

View File

@@ -5,10 +5,10 @@
#ifndef _DATA_MAP_H_
#define _DATA_MAP_H_
#include <string>
#include <unordered_map>
#include <memory>
#include <string>
#include <type_traits>
#include <unordered_map>
class DataMap
{

View File

@@ -12,8 +12,8 @@
#define _ACORE_GEOMETRY_H
#include "Define.h"
#include <iostream>
#include <cstdlib>
#include <iostream>
#include <math.h>
[[nodiscard]] inline float getAngle(float startX, float startY, float destX, float destY)

View File

@@ -5,10 +5,10 @@
#ifndef _MATH_UTIL_H
#define _MATH_UTIL_H
#include <vector>
#include <iterator>
#include <algorithm>
#include <iterator>
#include <numeric>
#include <vector>
// based on https://stackoverflow.com/questions/7616511/calculate-mean-and-standard-deviation-from-a-vector-of-samples-in-c-using-boos/12405793#comment32490316_12405793
template <typename Container, typename T = typename std::decay<decltype(*std::begin(std::declval<Container>()))>::type>

View File

@@ -7,8 +7,8 @@
#define __MESSAGEBUFFER_H_
#include "Define.h"
#include <vector>
#include <cstring>
#include <vector>
class MessageBuffer
{

View File

@@ -13,8 +13,8 @@
#include "Geometry.h"
#include <cmath>
#include <iostream>
#include <cstdlib>
#include <iostream>
using namespace std;

View File

@@ -6,9 +6,9 @@
#include "SFMTRand.h"
#include <algorithm>
#include <array>
#include <ctime>
#include <functional>
#include <random>
#include <ctime>
#if defined(__aarch64__)
#if defined(__clang__)

View File

@@ -8,8 +8,8 @@
#define _SIGNAL_HANDLER_H_
#include <csignal>
#include <unordered_set>
#include <mutex>
#include <unordered_set>
namespace Acore
{

View File

@@ -6,16 +6,16 @@
#ifndef _TASK_SCHEDULER_H_
#define _TASK_SCHEDULER_H_
#include <optional>
#include "Util.h"
#include <algorithm>
#include <chrono>
#include <functional>
#include <vector>
#include <queue>
#include <memory>
#include <optional>
#include <queue>
#include <set>
#include <utility>
#include "Util.h"
#include <vector>
class TaskContext;

View File

@@ -7,18 +7,18 @@
#include "Util.h"
#include "Common.h"
#include "Containers.h"
// #include "IpAddress.h"
#include "StringConvert.h"
#include "StringFormat.h"
#include <utf8.h>
#include <ace/Default_Constants.h>
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <string>
#include <cctype>
#include <cstdarg>
#include <ctime>
#include <ace/Default_Constants.h>
#include <iomanip>
#include <sstream>
#include <string>
#include <utf8.h>
// #include "IpAddress.h"
Tokenizer::Tokenizer(const std::string& src, const char sep, uint32 vectorReserve)
{

View File

@@ -7,17 +7,17 @@
#ifndef _UTIL_H
#define _UTIL_H
#include "Containers.h"
#include "Define.h"
#include "Errors.h"
#include "Containers.h"
#include <ace/INET_Addr.h>
#include <algorithm>
#include <array>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <ace/INET_Addr.h>
#include <array>
#include <string>
#include <vector>
// Searcher for map of structs
template<typename T, class S> struct Finder