File tree Expand file tree Collapse file tree 5 files changed +53
-10
lines changed Expand file tree Collapse file tree 5 files changed +53
-10
lines changed Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ set(files
350
350
__ranges/take_view.h
351
351
__ranges/transform_view.h
352
352
__ranges/view_interface.h
353
+ __ranges/views.h
353
354
__split_buffer
354
355
__std_stream
355
356
__string
Original file line number Diff line number Diff line change
1
+ // -*- C++ -*-
2
+ // ===----------------------------------------------------------------------===//
3
+ //
4
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5
+ // See https://llvm.org/LICENSE.txt for license information.
6
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7
+ //
8
+ // ===----------------------------------------------------------------------===//
9
+
10
+ #ifndef _LIBCPP___RANGES_VIEWS
11
+ #define _LIBCPP___RANGES_VIEWS
12
+
13
+ #include < __config>
14
+
15
+ #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
16
+ # pragma GCC system_header
17
+ #endif
18
+
19
+ _LIBCPP_BEGIN_NAMESPACE_STD
20
+
21
+ #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
22
+
23
+ namespace ranges {
24
+
25
+ namespace views { }
26
+
27
+ } // namespace ranges
28
+
29
+ namespace views = ranges::views;
30
+
31
+ #endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
32
+
33
+ _LIBCPP_END_NAMESPACE_STD
34
+
35
+ #endif // _LIBCPP___RANGES_VIEWS
Original file line number Diff line number Diff line change @@ -817,6 +817,7 @@ module std [system] {
817
817
export functional.__functional.perfect_forward
818
818
}
819
819
module view_interface { private header "__ranges/view_interface.h" }
820
+ module views { private header "__ranges/views.h" }
820
821
}
821
822
}
822
823
module ratio {
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ namespace std::ranges {
223
223
#include < __ranges/take_view.h>
224
224
#include < __ranges/transform_view.h>
225
225
#include < __ranges/view_interface.h>
226
+ #include < __ranges/views.h>
226
227
#include < compare> // Required by the standard.
227
228
#include < initializer_list> // Required by the standard.
228
229
#include < iterator> // Required by the standard.
@@ -233,14 +234,4 @@ namespace std::ranges {
233
234
#pragma GCC system_header
234
235
#endif
235
236
236
- #if !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
237
-
238
- _LIBCPP_BEGIN_NAMESPACE_STD
239
-
240
- namespace views = ranges::views;
241
-
242
- _LIBCPP_END_NAMESPACE_STD
243
-
244
- #endif // !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
245
-
246
237
#endif // _LIBCPP_RANGES
Original file line number Diff line number Diff line change
1
+ // ===----------------------------------------------------------------------===//
2
+ //
3
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
+ // See https://llvm.org/LICENSE.txt for license information.
5
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
+ //
7
+ // ===----------------------------------------------------------------------===//
8
+
9
+ // REQUIRES: modules-build
10
+
11
+ // WARNING: This test was generated by 'generate_private_header_tests.py'
12
+ // and should not be edited manually.
13
+
14
+ // expected-error@*:* {{use of private header from outside its module: '__ranges/views.h'}}
15
+ #include < __ranges/views.h>
You can’t perform that action at this time.
0 commit comments