#pragma once #include #include "llvm/ADT/StringRef.h" template <> struct std::formatter : std::formatter { template constexpr auto parse(ParseContext& ctx) { return std::formatter::parse(ctx); } template auto format(llvm::StringRef s, FormatContext& ctx) const { return std::formatter::format(std::string_view(s.str()), ctx); } };