24#include <fmt/format.h>
26#ifndef CONST_IF_LATER_FMTLIB
27#if FMT_VERSION >= 90000
28#define CONST_IF_LATER_FMTLIB const
30#define CONST_IF_LATER_FMTLIB
47 const std::optional<ChromeOsBuildString>&);
50 std::vector<std::optional<ChromeOsBuildString>>& value);
56 : formatter<std::string_view> {
57 template <
typename FormatContext>
61 fmt::format(
"{}/{}/{}", cob.project, cob.bucket, cob.builder);
68 : formatter<std::string_view> {
69 template <
typename FormatContext>
73 std::visit([](
auto&& value) {
return fmt::format(
"{}", value); }, cobs);
79struct fmt::formatter<
std::optional<cuttlefish::ChromeOsBuildString>>
80 : formatter<std::string_view> {
81 template <
typename FormatContext>
82 auto format(
const std::optional<cuttlefish::ChromeOsBuildString>& cobs,
84 auto formatted = cobs ?
fmt::format(
"{}", *cobs) :
"";
#define CONST_IF_LATER_FMTLIB
Definition: chrome_os_build_string.h:30
Definition: flag_parser.h:73
EventFormat format
Definition: kernel_log_server.cc:57
Definition: alloc_utils.cpp:23
Flag GflagsCompatFlag(const std::string &name)
Definition: flag_parser.cpp:583
std::variant< ChromeOsBuilder, std::string > ChromeOsBuildString
Definition: chrome_os_build_string.h:44
std::ostream & operator<<(std::ostream &out, Arch arch)
Definition: architecture.cpp:67
Definition: logging.h:464
Definition: chrome_os_build_string.h:37
std::string builder
Definition: chrome_os_build_string.h:40
std::string bucket
Definition: chrome_os_build_string.h:39
std::string project
Definition: chrome_os_build_string.h:38