Skip to content

Commit 0876668

Browse files
authored
[libc++][NFC] Move __format/format_fwd.h to __fwd/format.h (#84336)
1 parent 70da915 commit 0876668

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

libcxx/include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ set(files
380380
__format/format_context.h
381381
__format/format_error.h
382382
__format/format_functions.h
383-
__format/format_fwd.h
384383
__format/format_parse_context.h
385384
__format/format_string.h
386385
__format/format_to_n_result.h
@@ -430,6 +429,7 @@ set(files
430429
__fwd/array.h
431430
__fwd/bit_reference.h
432431
__fwd/complex.h
432+
__fwd/format.h
433433
__fwd/fstream.h
434434
__fwd/functional.h
435435
__fwd/ios.h

libcxx/include/__format/concepts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include <__concepts/same_as.h>
1414
#include <__concepts/semiregular.h>
1515
#include <__config>
16-
#include <__format/format_fwd.h>
1716
#include <__format/format_parse_context.h>
17+
#include <__fwd/format.h>
1818
#include <__type_traits/is_specialization.h>
1919
#include <__type_traits/remove_const.h>
2020
#include <__utility/pair.h>

libcxx/include/__format/format_arg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
#include <__concepts/arithmetic.h>
1515
#include <__config>
1616
#include <__format/concepts.h>
17-
#include <__format/format_fwd.h>
1817
#include <__format/format_parse_context.h>
1918
#include <__functional/invoke.h>
19+
#include <__fwd/format.h>
2020
#include <__memory/addressof.h>
2121
#include <__type_traits/conditional.h>
2222
#include <__utility/forward.h>

libcxx/include/__format/format_args.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <__config>
1515
#include <__format/format_arg.h>
1616
#include <__format/format_arg_store.h>
17-
#include <__format/format_fwd.h>
17+
#include <__fwd/format.h>
1818
#include <cstddef>
1919
#include <cstdint>
2020

libcxx/include/__format/format_context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <__format/format_arg_store.h>
1919
#include <__format/format_args.h>
2020
#include <__format/format_error.h>
21-
#include <__format/format_fwd.h>
21+
#include <__fwd/format.h>
2222
#include <__iterator/back_insert_iterator.h>
2323
#include <__iterator/concepts.h>
2424
#include <__memory/addressof.h>

libcxx/include/__format/formatter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include <__availability>
1414
#include <__config>
15-
#include <__format/format_fwd.h>
15+
#include <__fwd/format.h>
1616

1717
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
1818
# pragma GCC system_header

libcxx/include/__format/format_fwd.h renamed to libcxx/include/__fwd/format.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88
//===----------------------------------------------------------------------===//
99

10-
#ifndef _LIBCPP___FORMAT_FORMAT_FWD_H
11-
#define _LIBCPP___FORMAT_FORMAT_FWD_H
10+
#ifndef _LIBCPP___FWD_FORMAT_H
11+
#define _LIBCPP___FWD_FORMAT_H
1212

1313
#include <__availability>
1414
#include <__config>
@@ -36,4 +36,4 @@ struct _LIBCPP_TEMPLATE_VIS formatter;
3636

3737
_LIBCPP_END_NAMESPACE_STD
3838

39-
#endif // _LIBCPP___FORMAT_FORMAT_FWD_H
39+
#endif // _LIBCPP___FWD_FORMAT_H

libcxx/include/format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ namespace std {
199199
#include <__format/format_context.h>
200200
#include <__format/format_error.h>
201201
#include <__format/format_functions.h>
202-
#include <__format/format_fwd.h>
203202
#include <__format/format_parse_context.h>
204203
#include <__format/format_string.h>
205204
#include <__format/format_to_n_result.h>
@@ -215,6 +214,7 @@ namespace std {
215214
#include <__format/range_default_formatter.h>
216215
#include <__format/range_formatter.h>
217216
#include <__format/unicode.h>
217+
#include <__fwd/format.h>
218218
#include <version>
219219

220220
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)

libcxx/include/libcxx.imp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@
374374
{ include: [ "<__format/format_context.h>", "private", "<format>", "public" ] },
375375
{ include: [ "<__format/format_error.h>", "private", "<format>", "public" ] },
376376
{ include: [ "<__format/format_functions.h>", "private", "<format>", "public" ] },
377-
{ include: [ "<__format/format_fwd.h>", "private", "<format>", "public" ] },
378377
{ include: [ "<__format/format_parse_context.h>", "private", "<format>", "public" ] },
379378
{ include: [ "<__format/format_string.h>", "private", "<format>", "public" ] },
380379
{ include: [ "<__format/format_to_n_result.h>", "private", "<format>", "public" ] },
@@ -425,6 +424,7 @@
425424
{ include: [ "<__fwd/bit_reference.h>", "private", "<bitset>", "public" ] },
426425
{ include: [ "<__fwd/bit_reference.h>", "private", "<vector>", "public" ] },
427426
{ include: [ "<__fwd/complex.h>", "private", "<complex>", "public" ] },
427+
{ include: [ "<__fwd/format.h>", "private", "<format>", "public" ] },
428428
{ include: [ "<__fwd/fstream.h>", "private", "<iosfwd>", "public" ] },
429429
{ include: [ "<__fwd/functional.h>", "private", "<functional>", "public" ] },
430430
{ include: [ "<__fwd/ios.h>", "private", "<iosfwd>", "public" ] },

libcxx/include/module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ module std_private_format_format_functions [system] {
13151315
header "__format/format_functions.h"
13161316
export std_string
13171317
}
1318-
module std_private_format_format_fwd [system] { header "__format/format_fwd.h" }
1318+
module std_private_format_fwd [system] { header "__fwd/format.h" }
13191319
module std_private_format_format_parse_context [system] { header "__format/format_parse_context.h" }
13201320
module std_private_format_format_string [system] { header "__format/format_string.h" }
13211321
module std_private_format_format_to_n_result [system] {

0 commit comments

Comments
 (0)