run clang-format

This commit is contained in:
Lucca Jiménez Könings
2024-06-26 14:06:06 +02:00
parent 3c80bcbf01
commit 29f4d0d286
19 changed files with 44 additions and 57 deletions

View File

@@ -4,5 +4,5 @@
#include <string>
namespace ChronoWrapper {
std::chrono::high_resolution_clock::duration TimeFromStringWithLiteral(const std::string& time_str);
std::chrono::high_resolution_clock::duration TimeFromStringWithLiteral(const std::string& time_str);
}

View File

@@ -37,8 +37,8 @@
#include <filesystem>
namespace fs = std::filesystem;
#include "TConsole.h"
#include "Settings.h"
#include "TConsole.h"
struct Version {
uint8_t major;
@@ -61,8 +61,6 @@ class Application final {
public:
// types
using TShutdownHandler = std::function<void()>;
// methods

View File

@@ -17,7 +17,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#pragma once
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"

View File

@@ -23,8 +23,8 @@
* and write locks and read locks are mutually exclusive.
*/
#include <shared_mutex>
#include <mutex>
#include <shared_mutex>
// Use ReadLock(m) and WriteLock(m) to lock it.
using RWMutex = std::shared_mutex;

View File

@@ -89,7 +89,7 @@ struct Settings {
General_AllowGuests
};
Sync<std::unordered_map<Key, SettingsTypeVariant>> SettingsMap;
Sync<std::unordered_map<Key, SettingsTypeVariant>> SettingsMap;
enum SettingsAccessMask {
READ_ONLY, // Value can be read from console
READ_WRITE, // Value can be read and written to from console
@@ -101,7 +101,7 @@ struct Settings {
SettingsAccessMask // Console read/write permissions
>;
Sync<std::unordered_map<ComposedKey, SettingsAccessControl>> InputAccessMapping;
Sync<std::unordered_map<ComposedKey, SettingsAccessControl>> InputAccessMapping;
std::string getAsString(Key key);
int getAsInt(Key key);
@@ -142,5 +142,3 @@ struct Settings {
void setConsoleInputAccessMapping(const ComposedKey& keyName, int value);
void setConsoleInputAccessMapping(const ComposedKey& keyName, bool value);
};

View File

@@ -27,7 +27,7 @@ class TNetwork;
class TPPSMonitor : public IThreaded {
public:
explicit TPPSMonitor(TServer& Server);
virtual ~TPPSMonitor() {}
virtual ~TPPSMonitor() { }
void operator()() override;