clang format

This commit is contained in:
gabime
2024-11-29 13:40:40 +02:00
parent eacd4d6b2a
commit 62534f2e4e
13 changed files with 41 additions and 43 deletions

View File

@@ -75,11 +75,11 @@ TEST_CASE("dir_name", "[create_dir]") {
#ifdef _WIN32
//
// test windows cases when drive letter is given e.g. C:\\some-folder
//
#include <windows.h>
#include <fileapi.h>
//
// test windows cases when drive letter is given e.g. C:\\some-folder
//
#include <fileapi.h>
#include <windows.h>
std::string get_full_path(const std::string &relative_folder_path) {
char full_path[MAX_PATH];
@@ -100,7 +100,7 @@ spdlog::filename_t::value_type find_non_existing_drive() {
std::string root_path = std::string(1, drive) + ":\\";
UINT drive_type = GetDriveTypeA(root_path.c_str());
if (drive_type == DRIVE_NO_ROOT_DIR) {
return static_cast <spdlog::filename_t::value_type>(drive);
return static_cast<spdlog::filename_t::value_type>(drive);
}
}
return '\0'; // No available drive found
@@ -125,11 +125,10 @@ TEST_CASE("non_existing_drive", "[create_dir]") {
spdlog::filename_t path;
auto non_existing_drive = find_non_existing_drive();
path += non_existing_drive ;
path += non_existing_drive;
path += SPDLOG_FILENAME_T(":\\");
REQUIRE(create_dir(path) == false);
path += SPDLOG_FILENAME_T("subdir");
REQUIRE(create_dir(path) == false);
}
#endif // _WIN32

View File

@@ -1,5 +1,5 @@
#ifndef SPDLOG_NO_SOURCE_LOC
#define SPDLOG_NO_SOURCE_LOC
#define SPDLOG_NO_SOURCE_LOC
#endif
#include "includes.h"

View File

@@ -10,9 +10,9 @@
#include <thread>
#include "spdlog/details/null_mutex.h"
#include "spdlog/details/os.h"
#include "spdlog/fmt/fmt.h"
#include "spdlog/sinks/base_sink.h"
#include "spdlog/details/os.h"
namespace spdlog {
namespace sinks {

View File

@@ -1,5 +1,5 @@
#ifdef SPDLOG_NO_SOURCE_LOC
#undef SPDLOG_NO_SOURCE_LOC
#ifdef SPDLOG_NO_SOURCE_LOC
#undef SPDLOG_NO_SOURCE_LOC
#endif
#include "includes.h"