Files
spdlog/tests/includes.h

38 lines
919 B
C
Raw Permalink Normal View History

2016-04-20 11:57:49 +03:00
#pragma once
2022-10-31 17:09:45 +02:00
#if defined(__GNUC__) && __GNUC__ == 12
#pragma GCC diagnostic push
2023-09-25 16:40:05 +03:00
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12
2022-09-30 13:20:15 +02:00
#endif
#include <catch2/catch_all.hpp>
2022-10-31 17:09:45 +02:00
#if defined(__GNUC__) && __GNUC__ == 12
#pragma GCC diagnostic pop
2022-09-30 13:20:15 +02:00
#endif
2023-09-29 00:20:26 +03:00
#include <stdlib.h>
2018-03-09 15:26:33 +02:00
#include <chrono>
2016-04-20 11:57:49 +03:00
#include <cstdio>
2018-03-09 15:26:33 +02:00
#include <exception>
2016-04-20 11:57:49 +03:00
#include <fstream>
2023-09-29 00:20:26 +03:00
#include <iomanip>
2018-08-17 17:17:16 +03:00
#include <iostream>
2018-08-25 17:55:31 +03:00
#include <ostream>
2019-06-04 16:35:34 +03:00
#include <sstream>
2018-03-09 15:26:33 +02:00
#include <string>
2023-09-29 00:20:26 +03:00
#include "utils.h"
2016-04-20 11:57:49 +03:00
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
#include "spdlog/details/fmt_helper.h"
2023-09-29 00:20:26 +03:00
#include "spdlog/pattern_formatter.h"
2018-04-29 01:34:36 +03:00
#include "spdlog/sinks/null_sink.h"
2018-04-29 01:36:45 +03:00
#include "spdlog/sinks/stdout_color_sinks.h"
2023-09-29 00:20:26 +03:00
#include "spdlog/spdlog.h"
// to_string_view
[[nodiscard]] constexpr spdlog::string_view_t to_string_view(const spdlog::memory_buf_t &buf) noexcept {
return spdlog::string_view_t{buf.data(), buf.size()};
}