mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: update fmt
This commit is contained in:
@@ -10,3 +10,6 @@ common --registry=https://bcr.bazel.build
|
||||
common --@rules_dotnet//dotnet/settings:strict_deps=false
|
||||
|
||||
build --@rules_python//python/config_settings:python_version=3.12
|
||||
|
||||
# required to compile fmt on windows
|
||||
build --copt=-DFMT_UNICODE=0 --host_copt=-DFMT_UNICODE=0
|
||||
|
||||
@@ -23,7 +23,7 @@ bazel_dep(name = "rules_shell", version = "0.5.0")
|
||||
bazel_dep(name = "bazel_skylib", version = "1.8.1")
|
||||
bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "absl")
|
||||
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
|
||||
bazel_dep(name = "fmt", version = "10.0.0")
|
||||
bazel_dep(name = "fmt", version = "12.1.0")
|
||||
bazel_dep(name = "rules_kotlin", version = "2.1.3-codeql.1")
|
||||
bazel_dep(name = "gazelle", version = "0.40.0")
|
||||
bazel_dep(name = "rules_dotnet", version = "0.19.2-codeql.1")
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
// Provides formatters for standard library types to be used with fmtlib.
|
||||
// TODO: Patch fmtlib to support using `fmt/std.h` without RTTI
|
||||
// (https://github.com/fmtlib/fmt/issues/3170).
|
||||
|
||||
#include <filesystem>
|
||||
#include <fmt/format.h>
|
||||
#include <string_view>
|
||||
|
||||
namespace fmt {
|
||||
FMT_FORMAT_AS(std::filesystem::path, std::string);
|
||||
}
|
||||
|
||||
template <>
|
||||
struct fmt::formatter<std::error_code> : fmt::formatter<std::string> {
|
||||
auto format(const std::error_code& e, format_context& ctx) const {
|
||||
return fmt::formatter<std::string>::format(e.message(), ctx);
|
||||
}
|
||||
};
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/chrono.h>
|
||||
|
||||
#include "swift/logging/Formatters.h"
|
||||
#include <fmt/std.h>
|
||||
|
||||
#include <binlog/binlog.hpp>
|
||||
#include <binlog/TextOutputStream.hpp>
|
||||
|
||||
Reference in New Issue
Block a user