Fix clang-format

This commit is contained in:
Dennis Felsing 2022-02-15 00:32:04 +01:00
parent fef7af806c
commit 18d9997348
20 changed files with 20 additions and 34 deletions

View file

@ -4,9 +4,9 @@
#if defined(BACKEND_AS_OPENGL_ES) || !defined(CONF_BACKEND_OPENGL_ES)
#include <cstdio>
#include <engine/shared/linereader.h>
#include <engine/storage.h>
#include <cstdio>
#include <string>
#include <vector>

View file

@ -193,8 +193,7 @@ void CCommandProcessorFragment_SDL::Cmd_WindowDestroyNtf(const CCommandBuffer::S
#endif
}
CCommandProcessorFragment_SDL::CCommandProcessorFragment_SDL()
= default;
CCommandProcessorFragment_SDL::CCommandProcessorFragment_SDL() = default;
bool CCommandProcessorFragment_SDL::RunCommand(const CCommandBuffer::SCommand *pBaseCommand)
{

View file

@ -201,8 +201,7 @@ CHead::CHead(const char *pUrl, CTimeout Timeout, HTTPLOG LogProgress) :
{
}
CHead::~CHead()
= default;
CHead::~CHead() = default;
bool CHead::AfterInit(void *pCurl)
{

View file

@ -195,8 +195,7 @@ CAntibot::CAntibot() :
m_pServer(0), m_pConsole(0), m_pGameServer(0), m_Initialized(false)
{
}
CAntibot::~CAntibot()
= default;
CAntibot::~CAntibot() = default;
void CAntibot::Init()
{
m_pServer = Kernel()->RequestInterface<IServer>();

View file

@ -63,8 +63,7 @@ CDbConnectionPool::CDbConnectionPool() :
thread_init_and_detach(CDbConnectionPool::Worker, this, "database worker thread");
}
CDbConnectionPool::~CDbConnectionPool()
= default;
CDbConnectionPool::~CDbConnectionPool() = default;
void CDbConnectionPool::Print(IConsole *pConsole, Mode DatabaseMode)
{

View file

@ -9,8 +9,7 @@
#include <engine/shared/network.h>
#include <engine/storage.h>
CHostLookup::CHostLookup()
= default;
CHostLookup::CHostLookup() = default;
CHostLookup::CHostLookup(const char *pHostname, int Nettype)
{

View file

@ -5,8 +5,8 @@
#include <engine/shared/config.h>
#include <fcntl.h>
#include <cstdlib>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

View file

@ -18,8 +18,7 @@ IJob &IJob::operator=(const IJob &Other)
return *this;
}
IJob::~IJob()
= default;
IJob::~IJob() = default;
int IJob::Status()
{

View file

@ -3,8 +3,7 @@
#include "map.h"
#include <engine/storage.h>
CMap::CMap()
= default;
CMap::CMap() = default;
void *CMap::GetData(int Index)
{

View file

@ -4,8 +4,8 @@
#include <base/tl/sorted_array.h>
#include <climits>
#include <limits>
#include <cmath>
#include <limits>
#include <game/generated/client_data.h>

View file

@ -1,8 +1,8 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/math.h>
#include <engine/graphics.h>
#include <cmath>
#include <engine/graphics.h>
#include "render.h"

View file

@ -6,9 +6,9 @@
#include <antibot/antibot_data.h>
#include <cmath>
#include <engine/kernel.h>
#include <engine/map.h>
#include <cmath>
#include <game/collision.h>
#include <game/layers.h>

View file

@ -9,8 +9,7 @@ CLayerGame::CLayerGame(int w, int h) :
m_Game = 1;
}
CLayerGame::~CLayerGame()
= default;
CLayerGame::~CLayerGame() = default;
CTile CLayerGame::GetTile(int x, int y)
{

View file

@ -17,8 +17,7 @@ CLayerQuads::CLayerQuads()
m_Image = -1;
}
CLayerQuads::~CLayerQuads()
= default;
CLayerQuads::~CLayerQuads() = default;
void CLayerQuads::Render(bool QuadPicker)
{

View file

@ -12,8 +12,7 @@ CLayerSounds::CLayerSounds()
m_Sound = -1;
}
CLayerSounds::~CLayerSounds()
= default;
CLayerSounds::~CLayerSounds() = default;
void CLayerSounds::Render(bool Tileset)
{

View file

@ -6,6 +6,7 @@
#include "teeinfo.h"
#include <antibot/antibot_data.h>
#include <base/math.h>
#include <cstring>
#include <engine/console.h>
#include <engine/engine.h>
#include <engine/map.h>
@ -18,7 +19,6 @@
#include <game/collision.h>
#include <game/gamecore.h>
#include <game/version.h>
#include <cstring>
#include <game/generated/protocol7.h>
#include <game/generated/protocolglue.h>

View file

@ -45,8 +45,7 @@ IGameController::IGameController(class CGameContext *pGameServer)
m_CurrentRecord = 0;
}
IGameController::~IGameController()
= default;
IGameController::~IGameController() = default;
void IGameController::DoActivityCheck()
{

View file

@ -9,10 +9,7 @@
#include "teams.h"
#include <engine/shared/config.h>
CSaveTee::CSaveTee()
= default;
CSaveTee::CSaveTee() = default;
void CSaveTee::Save(CCharacter *pChr)
{

View file

@ -1,10 +1,10 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <base/system.h>
#include <cstdlib> //rand
#include <engine/shared/config.h>
#include <engine/shared/network.h>
#include <mastersrv/mastersrv.h>
#include <cstdlib> //rand
CNetServer *pNet;

View file

@ -1,11 +1,11 @@
#include <algorithm>
#include <base/math.h>
#include <base/system.h>
#include <cstdint>
#include <engine/shared/datafile.h>
#include <engine/shared/image_manipulation.h>
#include <engine/storage.h>
#include <game/mapitems.h>
#include <cstdint>
#include <utility>
#include <vector>