mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
clang format
This commit is contained in:
@@ -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
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#ifndef SPDLOG_NO_SOURCE_LOC
|
||||
#define SPDLOG_NO_SOURCE_LOC
|
||||
#define SPDLOG_NO_SOURCE_LOC
|
||||
#endif
|
||||
|
||||
#include "includes.h"
|
||||
|
@@ -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 {
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user