feat(CI/Codestyle): added codestyle check (#3668)

This commit is contained in:
Kargatum
2021-01-09 17:59:50 +07:00
committed by GitHub
parent 57aa46244d
commit ea93a5c1a1
400 changed files with 238 additions and 748 deletions

View File

@@ -364,7 +364,7 @@ protected:
int numBVH2{0};
public:
BuildStats()
BuildStats()
{
for (int & i : numLeavesN) i = 0;
}

View File

@@ -12,7 +12,6 @@
#include "G3D/Set.h"
#include "BoundingIntervalHierarchy.h"
template<class T, class BoundsFunc = BoundsTrait<T>>
class BIHWrap
{

View File

@@ -38,4 +38,3 @@ namespace MMAP
}
#endif

View File

@@ -50,7 +50,6 @@ namespace MMAP
MMapTileSet mmapLoadedTiles; // maps [map grid coords] to [dtTile]
};
typedef std::unordered_map<uint32, MMapData*> MMapDataSet;
// singleton class

View File

@@ -408,7 +408,6 @@ namespace VMAP
READ_OR_RETURN(&mogpflags, sizeof(uint32));
READ_OR_RETURN(&GroupWMOID, sizeof(uint32));
Vector3 vec1, vec2;
READ_OR_RETURN(&vec1, sizeof(Vector3));
@@ -482,7 +481,6 @@ namespace VMAP
return true;
}
GroupModel_Raw::~GroupModel_Raw()
{
delete liquid;

View File

@@ -63,7 +63,6 @@ namespace VMAP
std::vector<G3D::Vector3> vertexArray;
class WmoLiquid* liquid;
GroupModel_Raw() : liquid(nullptr) { }
~GroupModel_Raw();

View File

@@ -34,7 +34,6 @@ class GameObjectModel /*, public Intersectable*/
VMAP::WorldModel* iModel;
GameObject const* owner;
GameObjectModel() : iModel(nullptr), owner(nullptr) { }
bool initialize(const GameObject& go, const GameObjectDisplayInfoEntry& info);

View File

@@ -1,7 +1,6 @@
#ifndef _REGULAR_GRID_H
#define _REGULAR_GRID_H
#include <G3D/Ray.h>
#include <G3D/Table.h>
#include <G3D/BoundsTrait.h>
@@ -143,7 +142,6 @@ public:
bool isValid() const { return x >= 0 && x < CELL_NUMBER && y >= 0 && y < CELL_NUMBER;}
};
Node& getGridFor(float fx, float fy)
{
Cell c = Cell::ComputeCell(fx, fy);

View File

@@ -35,4 +35,3 @@ void CleanStringForMysqlQuery(std::string& str)
while ((n = str.find('"')) != str.npos) str.erase(n, 1);
while ((n = str.find('\'')) != str.npos) str.erase(n, 1);
}

View File

@@ -58,4 +58,3 @@ void AuthCrypt::EncryptSend(uint8* data, size_t len)
_serverEncrypt.UpdateData(len, data);
}

View File

@@ -4,7 +4,6 @@
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*/
#include "Cryptography/BigNumber.h"
#include <openssl/bn.h>
#include <openssl/crypto.h>
@@ -186,4 +185,3 @@ char* BigNumber::AsDecStr() const
{
return BN_bn2dec(_bn);
}

View File

@@ -88,4 +88,3 @@ private:
};
#endif

View File

@@ -32,4 +32,3 @@ private:
uint8 m_digest[SHA_DIGEST_LENGTH];
};
#endif

View File

@@ -53,4 +53,3 @@ void SHA1Hash::Finalize(void)
{
SHA1_Final(mDigest, &mC);
}

View File

@@ -35,4 +35,3 @@ private:
uint8 mDigest[SHA_DIGEST_LENGTH];
};
#endif

View File

@@ -31,4 +31,3 @@ extern CharacterDatabaseWorkerPool CharacterDatabase;
extern LoginDatabaseWorkerPool LoginDatabase;
#endif

View File

@@ -410,4 +410,3 @@ private:
};
#endif

View File

@@ -451,7 +451,6 @@ PreparedStatementTask::PreparedStatementTask(PreparedStatement* stmt, PreparedQu
{
}
PreparedStatementTask::~PreparedStatementTask()
{
delete m_stmt;

View File

@@ -99,4 +99,3 @@ private:
typedef std::shared_ptr<PreparedResultSet> PreparedQueryResult;
#endif

View File

@@ -70,7 +70,6 @@ bool WheatyExceptionReport::alreadyCrashed;
std::mutex WheatyExceptionReport::alreadyCrashedLock;
WheatyExceptionReport::pRtlGetVersion WheatyExceptionReport::RtlGetVersion;
// Declare global instance of class
WheatyExceptionReport g_WheatyExceptionReport;
@@ -1230,7 +1229,6 @@ void WheatyExceptionReport::DumpTypeIndex(
dataKind == DataIsStaticMember)
continue;
symbolDetails.top().HasChildren = true;
if (!logChildren)
{

View File

@@ -75,7 +75,7 @@ private:
LinkedListElement iLast;
uint32 iSize{0};
public:
LinkedListHead()
LinkedListHead()
{
// create empty list

View File

@@ -41,4 +41,3 @@ public:
//=====================================================
#endif

View File

@@ -109,4 +109,3 @@ private:
ContainerMapList<OBJECT_TYPES> i_elements;
};
#endif

View File

@@ -98,4 +98,3 @@ namespace acore
//}
}
#endif

View File

@@ -153,4 +153,3 @@ namespace acore
}
#endif

View File

@@ -96,4 +96,3 @@ private:
VISITOR& i_visitor;
};
#endif

View File

@@ -29,4 +29,3 @@ struct TypeList
#define TYPELIST_4(T1, T2, T3, T4) TypeList<T1, TYPELIST_3(T2, T3, T4) >
#define TYPELIST_5(T1, T2, T3, T4, T5) TypeList<T1, TYPELIST_4(T2, T3, T4, T5) >
#endif

View File

@@ -127,5 +127,4 @@ public:
virtual bool GetSQLDriverQueryLogging() const = 0;
};
#endif //AZEROTHCORE_ILOG_H

View File

@@ -64,7 +64,6 @@ Log::~Log()
miscLogFile = NULL;
}
std::unique_ptr<ILog>& getLogInstance()
{
static std::unique_ptr<ILog> instance = std::make_unique<Log>();

View File

@@ -118,4 +118,3 @@ std::unique_ptr<ILog>& getLogInstance();
#define sLog getLogInstance()
#endif

View File

@@ -53,7 +53,7 @@ public:
const static size_t DEFAULT_SIZE = 0x1000;
// constructor
ByteBuffer()
ByteBuffer()
{
_storage.reserve(DEFAULT_SIZE);
}

View File

@@ -14,7 +14,7 @@ class WorldPacket : public ByteBuffer
{
public:
// just container for later use
WorldPacket() : ByteBuffer(0)
WorldPacket() : ByteBuffer(0)
{
}
explicit WorldPacket(uint16 opcode, size_t res = 200) : ByteBuffer(res), m_opcode(opcode) { }

View File

@@ -31,7 +31,7 @@ namespace ACE_Based
//! Create a LockedQueue.
LockedQueue()
{
}

View File

@@ -117,7 +117,6 @@ void Thread::setPriority(Priority priority)
break;
}
// remove this ASSERT in case you don't want to know is thread priority change was successful or not
ASSERT(_ok);
}

View File

@@ -53,4 +53,3 @@ inline void EndianConvertReverse(uint8&) { }
inline void EndianConvertReverse( int8&) { }
#endif

View File

@@ -1,6 +1,6 @@
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
*/
#ifndef ACORE_OPTIONAL_H

View File

@@ -249,4 +249,3 @@ bool WinServiceRun()
return true;
}
#endif

View File

@@ -14,4 +14,3 @@ bool WinServiceRun();
#endif // _WIN32_SERVICE_
#endif // _WIN32

View File

@@ -53,7 +53,7 @@ struct IntervalTimer
public:
IntervalTimer()
{
}