[libcxx-commits] [PATCH] D150503: [libc++][PSTL] Make the PSTL submodules only have one header
Ian Anderson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat May 13 23:01:18 PDT 2023
iana updated this revision to Diff 521970.
iana added a comment.
Add one more export
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150503/new/
https://reviews.llvm.org/D150503
Files:
libcxx/include/module.modulemap.in
libcxx/test/libcxx/lint/lint_modulemap.sh.py
Index: libcxx/test/libcxx/lint/lint_modulemap.sh.py
===================================================================
--- libcxx/test/libcxx/lint/lint_modulemap.sh.py
+++ libcxx/test/libcxx/lint/lint_modulemap.sh.py
@@ -29,6 +29,9 @@
elif re.match(r'^\s*module (\w+)_fwd\s+[{] private header "__fwd/\1[.]h" [}]', line):
# It's a private submodule with forward declarations, such as <__fwd/span.h>.
pass
+ elif re.match(r'^\s*module (?:\w+_)*(\w+)\s+[{] private (textual )?header "__(\w+/)*\1[.]h" [}]', line):
+ # It's a private pstl submodule, such as <__algorithm/pstl_backends/cpu_backend.h>
+ pass
else:
okay = False
print("LINE DOESN'T MATCH REGEX in libcxx/include/module.modulemap.in!")
Index: libcxx/include/module.modulemap.in
===================================================================
--- libcxx/include/module.modulemap.in
+++ libcxx/include/module.modulemap.in
@@ -320,13 +320,25 @@
module partition_point { private header "__algorithm/partition_point.h" }
module pop_heap { private header "__algorithm/pop_heap.h" }
module prev_permutation { private header "__algorithm/prev_permutation.h" }
- module pstl {
+ module pstl_backends_cpu_backend {
private header "__algorithm/pstl_backends/cpu_backend.h"
+ export *
+ }
+ module pstl_backends_cpu_backends_any_of {
private header "__algorithm/pstl_backends/cpu_backends/any_of.h"
+ }
+ module pstl_backends_cpu_backends_backend {
private header "__algorithm/pstl_backends/cpu_backends/backend.h"
- private header "__algorithm/pstl_backends/cpu_backends/fill.h"
+ export *
+ }
+ module pstl_backends_cpu_backends_fill { private header "__algorithm/pstl_backends/cpu_backends/fill.h" }
+ module pstl_backends_cpu_backends_find_if {
private header "__algorithm/pstl_backends/cpu_backends/find_if.h"
+ }
+ module pstl_backends_cpu_backends_for_each {
private header "__algorithm/pstl_backends/cpu_backends/for_each.h"
+ }
+ module pstl_backends_cpu_backends_serial {
private header "__algorithm/pstl_backends/cpu_backends/serial.h"
}
module push_heap { private header "__algorithm/push_heap.h" }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150503.521970.patch
Type: text/x-patch
Size: 2491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230514/0d91213e/attachment-0001.bin>
More information about the libcxx-commits
mailing list