
This adds the cppm files of D144994. These files by themselves will do nothing. The goal is to reduce the size of D144994 and making it easier to review the real changes of the patch. Implements parts of - P2465R3 Standard Library Modules std and std.compat Reviewed By: ldionne, ChuanqiXu, aaronmondal, #libc Differential Revision: https://reviews.llvm.org/D151030
82 lines
2.3 KiB
C++
82 lines
2.3 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
module;
|
|
#include <format>
|
|
|
|
export module std:format;
|
|
#if !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)
|
|
export namespace std {
|
|
// [format.context], class template basic_format_context
|
|
using std::basic_format_context;
|
|
using std::format_context;
|
|
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
|
using std::wformat_context;
|
|
# endif
|
|
|
|
// [format.args], class template basic_format_args
|
|
using std::basic_format_args;
|
|
using std::format_args;
|
|
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
|
using std::wformat_args;
|
|
# endif
|
|
|
|
// [format.fmt.string], class template basic_format_string
|
|
using std::basic_format_string;
|
|
using std::format_string;
|
|
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
|
using std::wformat_string;
|
|
# endif
|
|
|
|
// [format.functions], formatting functions
|
|
using std::format;
|
|
using std::format_to;
|
|
using std::vformat;
|
|
using std::vformat_to;
|
|
|
|
using std::format_to_n;
|
|
using std::format_to_n_result;
|
|
using std::formatted_size;
|
|
|
|
// [format.formatter], formatter
|
|
using std::formatter;
|
|
|
|
// [format.formattable], concept formattable
|
|
using std::formattable;
|
|
|
|
// [format.parse.ctx], class template basic_format_parse_context
|
|
using std::basic_format_parse_context;
|
|
using std::format_parse_context;
|
|
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
|
using std::wformat_parse_context;
|
|
# endif
|
|
|
|
// [format.range], formatting of ranges
|
|
// [format.range.fmtkind], variable template format_kind
|
|
using std::format_kind;
|
|
using std::range_format;
|
|
|
|
// [format.range.formatter], class template range_formatter
|
|
using std::range_formatter;
|
|
|
|
// [format.arg], class template basic_format_arg
|
|
using std::basic_format_arg;
|
|
using std::visit_format_arg;
|
|
|
|
// [format.arg.store], class template format-arg-store
|
|
using std::make_format_args;
|
|
# ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
|
using std::make_wformat_args;
|
|
# endif
|
|
|
|
// [format.error], class format_error
|
|
using std::format_error;
|
|
} // namespace std
|
|
#endif // !defined(_LIBCPP_HAS_NO_INCOMPLETE_FORMAT)
|