From 59451114fda2b535de0573d9c82a21c5a7889a83 Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 11:07:23 +0530 Subject: [PATCH 1/8] Enable C++20 module generation for remaining core and full modules --- libs/core/async_sycl/CMakeLists.txt | 2 ++ libs/core/gasnet_base/CMakeLists.txt | 1 + libs/core/lcw_base/CMakeLists.txt | 1 + libs/core/preprocessor/CMakeLists.txt | 2 ++ libs/full/actions/CMakeLists.txt | 1 + libs/full/agas/CMakeLists.txt | 1 + libs/full/agas_base/CMakeLists.txt | 2 ++ libs/full/async_colocated/CMakeLists.txt | 2 ++ libs/full/async_distributed/CMakeLists.txt | 2 ++ libs/full/checkpoint/CMakeLists.txt | 1 + libs/full/collectives/CMakeLists.txt | 2 ++ libs/full/components/CMakeLists.txt | 1 + libs/full/compute/CMakeLists.txt | 2 ++ libs/full/distribution_policies/CMakeLists.txt | 1 + libs/full/executors_distributed/CMakeLists.txt | 1 + libs/full/init_runtime/CMakeLists.txt | 2 ++ libs/full/lcos_distributed/CMakeLists.txt | 1 + libs/full/parcelport_gasnet/CMakeLists.txt | 1 + libs/full/parcelport_lci/CMakeLists.txt | 1 + libs/full/parcelport_lcw/CMakeLists.txt | 1 + libs/full/parcelport_mpi/CMakeLists.txt | 1 + libs/full/parcelport_tcp/CMakeLists.txt | 1 + libs/full/parcelports/CMakeLists.txt | 1 + libs/full/parcelset/CMakeLists.txt | 2 ++ libs/full/performance_counters/CMakeLists.txt | 2 ++ libs/full/resiliency_distributed/CMakeLists.txt | 1 + libs/full/runtime_components/CMakeLists.txt | 1 + libs/full/runtime_distributed/CMakeLists.txt | 1 + libs/full/segmented_algorithms/CMakeLists.txt | 1 + 29 files changed, 39 insertions(+) diff --git a/libs/core/async_sycl/CMakeLists.txt b/libs/core/async_sycl/CMakeLists.txt index a09dcad8c5d2..4fc113c5cbf8 100644 --- a/libs/core/async_sycl/CMakeLists.txt +++ b/libs/core/async_sycl/CMakeLists.txt @@ -28,6 +28,8 @@ include(HPX_AddModule) add_hpx_module( core async_sycl GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/async_sycl/detail/sycl_event_callback.hpp SOURCES ${async_sycl_sources} HEADERS ${async_sycl_headers} COMPAT_HEADERS ${async_sycl_compat_headers} diff --git a/libs/core/gasnet_base/CMakeLists.txt b/libs/core/gasnet_base/CMakeLists.txt index 66418b37b143..d286797d2d75 100644 --- a/libs/core/gasnet_base/CMakeLists.txt +++ b/libs/core/gasnet_base/CMakeLists.txt @@ -30,6 +30,7 @@ include(HPX_AddModule) add_hpx_module( core gasnet_base GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${gasnet_base_sources} HEADERS ${gasnet_base_headers} DEPENDENCIES PkgConfig::GASNET ${gasnet_additional_dependencies} diff --git a/libs/core/lcw_base/CMakeLists.txt b/libs/core/lcw_base/CMakeLists.txt index 14cd4f8e0b11..2325e736c243 100644 --- a/libs/core/lcw_base/CMakeLists.txt +++ b/libs/core/lcw_base/CMakeLists.txt @@ -23,6 +23,7 @@ include(HPX_AddModule) add_hpx_module( core lcw_base GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${lcw_base_sources} HEADERS ${lcw_base_headers} MODULE_DEPENDENCIES hpx_logging hpx_runtime_configuration hpx_string_util diff --git a/libs/core/preprocessor/CMakeLists.txt b/libs/core/preprocessor/CMakeLists.txt index b87471edf1f9..505537731382 100644 --- a/libs/core/preprocessor/CMakeLists.txt +++ b/libs/core/preprocessor/CMakeLists.txt @@ -29,7 +29,9 @@ include(HPX_AddModule) add_hpx_module( core preprocessor NO_CONFIG_IN_GENERATED_HEADERS GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN OFF HEADERS ${preprocessor_headers} + MACRO_HEADERS ${preprocessor_headers} COMPAT_HEADERS ${preprocessor_compat_headers} CMAKE_SUBDIRS tests ) diff --git a/libs/full/actions/CMakeLists.txt b/libs/full/actions/CMakeLists.txt index c22e8464ea6b..5f5da56abc58 100644 --- a/libs/full/actions/CMakeLists.txt +++ b/libs/full/actions/CMakeLists.txt @@ -43,6 +43,7 @@ include(HPX_AddModule) add_hpx_module( full actions GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${actions_sources} HEADERS ${actions_headers} COMPAT_HEADERS ${actions_compat_headers} diff --git a/libs/full/agas/CMakeLists.txt b/libs/full/agas/CMakeLists.txt index 72d526471986..d2d0eb00675e 100644 --- a/libs/full/agas/CMakeLists.txt +++ b/libs/full/agas/CMakeLists.txt @@ -29,6 +29,7 @@ include(HPX_AddModule) add_hpx_module( full agas GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${agas_sources} HEADERS ${agas_headers} COMPAT_HEADERS ${agas_compat_headers} diff --git a/libs/full/agas_base/CMakeLists.txt b/libs/full/agas_base/CMakeLists.txt index 8fb09230926a..618f328c4151 100644 --- a/libs/full/agas_base/CMakeLists.txt +++ b/libs/full/agas_base/CMakeLists.txt @@ -66,6 +66,8 @@ include(HPX_AddModule) add_hpx_module( full agas_base GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/agas_base/detail/bootstrap_component_namespace.hpp hpx/agas_base/detail/bootstrap_locality_namespace.hpp hpx/agas_base/detail/hosted_component_namespace.hpp hpx/agas_base/detail/hosted_locality_namespace.hpp SOURCES ${agas_base_sources} HEADERS ${agas_base_headers} COMPAT_HEADERS ${agas_base_compat_headers} diff --git a/libs/full/async_colocated/CMakeLists.txt b/libs/full/async_colocated/CMakeLists.txt index b1845878ea39..7c90113209fa 100644 --- a/libs/full/async_colocated/CMakeLists.txt +++ b/libs/full/async_colocated/CMakeLists.txt @@ -48,6 +48,8 @@ include(HPX_AddModule) add_hpx_module( full async_colocated GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/async_distributed/detail/async_colocated.hpp hpx/async_distributed/detail/async_colocated_callback.hpp hpx/async_distributed/detail/async_colocated_callback_fwd.hpp hpx/async_distributed/detail/async_colocated_fwd.hpp SOURCES ${async_colocated_sources} HEADERS ${async_colocated_headers} COMPAT_HEADERS ${async_colocated_compat_headers} diff --git a/libs/full/async_distributed/CMakeLists.txt b/libs/full/async_distributed/CMakeLists.txt index 3fbfefc16daf..fcf21a178b4d 100644 --- a/libs/full/async_distributed/CMakeLists.txt +++ b/libs/full/async_distributed/CMakeLists.txt @@ -119,6 +119,8 @@ set(async_sources include(HPX_AddModule) add_hpx_module( full async_distributed + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/async_distributed/detail/async_implementations.hpp hpx/async_distributed/detail/async_implementations_fwd.hpp hpx/async_distributed/detail/async_unwrap_result_implementations.hpp hpx/async_distributed/detail/async_unwrap_result_implementations_fwd.hpp hpx/async_distributed/detail/post.hpp hpx/async_distributed/detail/post_callback.hpp hpx/async_distributed/detail/post_continue.hpp hpx/async_distributed/detail/post_continue_callback.hpp hpx/async_distributed/detail/post_continue_fwd.hpp hpx/async_distributed/detail/post_implementations.hpp hpx/async_distributed/detail/post_implementations_fwd.hpp hpx/async_distributed/detail/promise_base.hpp hpx/async_distributed/detail/promise_lco.hpp hpx/async_distributed/detail/sync_implementations.hpp hpx/async_distributed/detail/sync_implementations_fwd.hpp hpx/async_distributed/detail/trigger.hpp GLOBAL_HEADER_GEN OFF SOURCES ${async_sources} HEADERS ${async_headers} diff --git a/libs/full/checkpoint/CMakeLists.txt b/libs/full/checkpoint/CMakeLists.txt index 1def1109b463..be09652c60ea 100644 --- a/libs/full/checkpoint/CMakeLists.txt +++ b/libs/full/checkpoint/CMakeLists.txt @@ -27,6 +27,7 @@ include(HPX_AddModule) add_hpx_module( full checkpoint GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${checkpoint_sources} HEADERS ${checkpoint_headers} COMPAT_HEADERS ${checkpoint_compat_headers} diff --git a/libs/full/collectives/CMakeLists.txt b/libs/full/collectives/CMakeLists.txt index 51c7647beb2e..9ca6841c3dc9 100644 --- a/libs/full/collectives/CMakeLists.txt +++ b/libs/full/collectives/CMakeLists.txt @@ -71,6 +71,8 @@ set(collectives_sources include(HPX_AddModule) add_hpx_module( full collectives + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/collectives/detail/channel_communicator.hpp hpx/collectives/detail/communicator.hpp hpx/collectives/detail/latch.hpp SOURCES ${collectives_sources} HEADERS ${collectives_headers} COMPAT_HEADERS ${collectives_compat_headers} diff --git a/libs/full/components/CMakeLists.txt b/libs/full/components/CMakeLists.txt index 737bb247ebd9..aee7288b01f1 100644 --- a/libs/full/components/CMakeLists.txt +++ b/libs/full/components/CMakeLists.txt @@ -40,6 +40,7 @@ include(HPX_AddModule) add_hpx_module( full components GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${components_sources} HEADERS ${components_headers} COMPAT_HEADERS ${components_compat_headers} diff --git a/libs/full/compute/CMakeLists.txt b/libs/full/compute/CMakeLists.txt index 1b87ec697e2d..2630d3afd15b 100644 --- a/libs/full/compute/CMakeLists.txt +++ b/libs/full/compute/CMakeLists.txt @@ -41,6 +41,8 @@ include(HPX_AddModule) add_hpx_module( full compute GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/compute/detail/target_distribution_policy.hpp SOURCES ${compute_sources} HEADERS ${compute_headers} COMPAT_HEADERS ${compute_compat_headers} diff --git a/libs/full/distribution_policies/CMakeLists.txt b/libs/full/distribution_policies/CMakeLists.txt index 72812cd1bd40..a41dec6bc6b5 100644 --- a/libs/full/distribution_policies/CMakeLists.txt +++ b/libs/full/distribution_policies/CMakeLists.txt @@ -37,6 +37,7 @@ include(HPX_AddModule) add_hpx_module( full distribution_policies GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${distribution_policies_sources} HEADERS ${distribution_policies_headers} COMPAT_HEADERS ${distribution_policies_compat_headers} diff --git a/libs/full/executors_distributed/CMakeLists.txt b/libs/full/executors_distributed/CMakeLists.txt index 5e203baacfe2..77bd0eed5f72 100644 --- a/libs/full/executors_distributed/CMakeLists.txt +++ b/libs/full/executors_distributed/CMakeLists.txt @@ -24,6 +24,7 @@ include(HPX_AddModule) add_hpx_module( full executors_distributed GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON HEADERS ${executors_distributed_headers} COMPAT_HEADERS ${executors_distributed_compat_headers} DEPENDENCIES hpx_core diff --git a/libs/full/init_runtime/CMakeLists.txt b/libs/full/init_runtime/CMakeLists.txt index e8cffee9776d..84ab8b93f272 100644 --- a/libs/full/init_runtime/CMakeLists.txt +++ b/libs/full/init_runtime/CMakeLists.txt @@ -45,6 +45,8 @@ endif() include(HPX_AddModule) add_hpx_module( full init_runtime + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/init_runtime/detail/init_logging.hpp hpx/init_runtime/detail/run_or_start.hpp GLOBAL_HEADER_GEN OFF HEADERS ${init_runtime_headers} SOURCES ${init_runtime_sources} diff --git a/libs/full/lcos_distributed/CMakeLists.txt b/libs/full/lcos_distributed/CMakeLists.txt index afacfffbd6ca..0afc5fc536d5 100644 --- a/libs/full/lcos_distributed/CMakeLists.txt +++ b/libs/full/lcos_distributed/CMakeLists.txt @@ -27,6 +27,7 @@ include(HPX_AddModule) add_hpx_module( full lcos_distributed GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${lcos_distributed_sources} HEADERS ${lcos_distributed_headers} COMPAT_HEADERS ${lcos_distributed_compat_headers} diff --git a/libs/full/parcelport_gasnet/CMakeLists.txt b/libs/full/parcelport_gasnet/CMakeLists.txt index a0801b96f10d..b77aabf42009 100644 --- a/libs/full/parcelport_gasnet/CMakeLists.txt +++ b/libs/full/parcelport_gasnet/CMakeLists.txt @@ -36,6 +36,7 @@ include(HPX_AddModule) add_hpx_module( full parcelport_gasnet GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${parcelport_gasnet_sources} HEADERS ${parcelport_gasnet_headers} DEPENDENCIES hpx_core hpx_gasnet_base PkgConfig::GASNET diff --git a/libs/full/parcelport_lci/CMakeLists.txt b/libs/full/parcelport_lci/CMakeLists.txt index c81978b65f4a..6211fb81bd01 100644 --- a/libs/full/parcelport_lci/CMakeLists.txt +++ b/libs/full/parcelport_lci/CMakeLists.txt @@ -58,6 +58,7 @@ include(HPX_AddModule) add_hpx_module( full parcelport_lci GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${parcelport_lci_sources} HEADERS ${parcelport_lci_headers} COMPAT_HEADERS ${parcelport_lci_compat_headers} diff --git a/libs/full/parcelport_lcw/CMakeLists.txt b/libs/full/parcelport_lcw/CMakeLists.txt index 9f09b9f04b0c..e825b5a70ebe 100644 --- a/libs/full/parcelport_lcw/CMakeLists.txt +++ b/libs/full/parcelport_lcw/CMakeLists.txt @@ -53,6 +53,7 @@ include(HPX_AddModule) add_hpx_module( full parcelport_lcw GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${parcelport_lcw_sources} HEADERS ${parcelport_lcw_headers} COMPAT_HEADERS ${parcelport_lcw_compat_headers} diff --git a/libs/full/parcelport_mpi/CMakeLists.txt b/libs/full/parcelport_mpi/CMakeLists.txt index ec60ec1ba2bf..ee57b4c8633f 100644 --- a/libs/full/parcelport_mpi/CMakeLists.txt +++ b/libs/full/parcelport_mpi/CMakeLists.txt @@ -33,6 +33,7 @@ include(HPX_AddModule) add_hpx_module( full parcelport_mpi GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${parcelport_mpi_sources} HEADERS ${parcelport_mpi_headers} COMPAT_HEADERS ${parcelport_mpi_compat_headers} diff --git a/libs/full/parcelport_tcp/CMakeLists.txt b/libs/full/parcelport_tcp/CMakeLists.txt index c7988e0fb669..40631113854c 100644 --- a/libs/full/parcelport_tcp/CMakeLists.txt +++ b/libs/full/parcelport_tcp/CMakeLists.txt @@ -27,6 +27,7 @@ include(HPX_AddModule) add_hpx_module( full parcelport_tcp GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${parcelport_tcp_sources} HEADERS ${parcelport_tcp_headers} COMPAT_HEADERS ${parcelport_tcp_compat_headers} diff --git a/libs/full/parcelports/CMakeLists.txt b/libs/full/parcelports/CMakeLists.txt index c82b99654806..fb83d09c138e 100644 --- a/libs/full/parcelports/CMakeLists.txt +++ b/libs/full/parcelports/CMakeLists.txt @@ -49,6 +49,7 @@ configure_file( include(HPX_AddModule) add_hpx_module( full parcelports + GLOBAL_HEADER_MODULE_GEN ON GLOBAL_HEADER_GEN OFF GENERATED_HEADERS ${parcelports_generated_headers} SOURCES ${parcelports_sources} diff --git a/libs/full/parcelset/CMakeLists.txt b/libs/full/parcelset/CMakeLists.txt index cc49c3f793aa..fa96f9e9b7c2 100644 --- a/libs/full/parcelset/CMakeLists.txt +++ b/libs/full/parcelset/CMakeLists.txt @@ -56,6 +56,8 @@ include(HPX_AddModule) add_hpx_module( full parcelset GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/parcelset/detail/call_for_each.hpp hpx/parcelset/detail/message_handler_interface_functions.hpp hpx/parcelset/detail/parcel_await.hpp SOURCES ${parcelset_sources} HEADERS ${parcelset_headers} COMPAT_HEADERS ${parcelset_compat_headers} diff --git a/libs/full/performance_counters/CMakeLists.txt b/libs/full/performance_counters/CMakeLists.txt index e41650a85461..a5ace185190b 100644 --- a/libs/full/performance_counters/CMakeLists.txt +++ b/libs/full/performance_counters/CMakeLists.txt @@ -87,6 +87,8 @@ include(HPX_AddModule) add_hpx_module( full performance_counters GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON + ADD_TO_GLOBAL_HEADER hpx/performance_counters/detail/counter_interface_functions.hpp SOURCES ${performance_counters_sources} HEADERS ${performance_counters_headers} DEPENDENCIES hpx_core diff --git a/libs/full/resiliency_distributed/CMakeLists.txt b/libs/full/resiliency_distributed/CMakeLists.txt index f7973eac43c5..4921c8cec8c9 100644 --- a/libs/full/resiliency_distributed/CMakeLists.txt +++ b/libs/full/resiliency_distributed/CMakeLists.txt @@ -20,6 +20,7 @@ include(HPX_AddModule) add_hpx_module( full resiliency_distributed GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${resiliency_distributed_sources} HEADERS ${resiliency_distributed_headers} DEPENDENCIES hpx_core diff --git a/libs/full/runtime_components/CMakeLists.txt b/libs/full/runtime_components/CMakeLists.txt index 36d6093bb34e..2db1332173ec 100644 --- a/libs/full/runtime_components/CMakeLists.txt +++ b/libs/full/runtime_components/CMakeLists.txt @@ -56,6 +56,7 @@ include(HPX_AddModule) add_hpx_module( full runtime_components GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON HEADERS ${runtime_components_headers} SOURCES ${runtime_components_sources} COMPAT_HEADERS ${runtime_components_compat_headers} diff --git a/libs/full/runtime_distributed/CMakeLists.txt b/libs/full/runtime_distributed/CMakeLists.txt index 914e1887ee0a..7731e1628990 100644 --- a/libs/full/runtime_distributed/CMakeLists.txt +++ b/libs/full/runtime_distributed/CMakeLists.txt @@ -59,6 +59,7 @@ include(HPX_AddModule) add_hpx_module( full runtime_distributed GLOBAL_HEADER_GEN ON + GLOBAL_HEADER_MODULE_GEN ON SOURCES ${runtime_distributed_sources} HEADERS ${runtime_distributed_headers} COMPAT_HEADERS ${runtime_distributed_compat_headers} diff --git a/libs/full/segmented_algorithms/CMakeLists.txt b/libs/full/segmented_algorithms/CMakeLists.txt index c062a3414f33..253ff2e64c64 100644 --- a/libs/full/segmented_algorithms/CMakeLists.txt +++ b/libs/full/segmented_algorithms/CMakeLists.txt @@ -51,6 +51,7 @@ set(segmented_algorithms_compat_headers include(HPX_AddModule) add_hpx_module( full segmented_algorithms + GLOBAL_HEADER_MODULE_GEN ON HEADERS ${segmented_algorithms_headers} COMPAT_HEADERS ${segmented_algorithms_compat_headers} DEPENDENCIES hpx_core From 5013ced8889000503c1b79f7763d52f7c14223bc Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 12:06:02 +0530 Subject: [PATCH 2/8] Modularize actions module for C++20 --- .../server/component_storage.hpp | 2 +- .../partitioned_vector_component_decl.hpp | 2 +- .../partition_unordered_map_component.hpp | 2 +- .../iostreams/server/output_stream.hpp | 2 +- .../hpx/components/process/server/child.hpp | 2 +- libs/full/actions/CMakeLists.txt | 4 + .../include/hpx/actions/base_action.hpp | 104 +--------------- .../actions/include/hpx/actions/macros.hpp | 117 ++++++++++++++++++ .../agas_base/server/component_namespace.hpp | 2 +- .../agas_base/server/locality_namespace.hpp | 2 +- .../agas_base/server/primary_namespace.hpp | 2 +- .../hpx/agas_base/server/symbol_namespace.hpp | 2 +- .../hpx/async_distributed/base_lco.hpp | 2 +- .../async_distributed/base_lco_with_value.hpp | 2 +- .../hpx/async_distributed/detail/post.hpp | 2 +- .../hpx/async_distributed/put_parcel.hpp | 3 +- .../transfer_continuation_action.hpp | 5 +- .../hpx/async_distributed/trigger_lco.hpp | 2 +- libs/full/async_distributed/src/base_lco.cpp | 2 +- .../async_distributed/src/continuation.cpp | 2 +- .../hpx/collectives/broadcast_direct.hpp | 2 +- .../include/hpx/collectives/detail/latch.hpp | 2 +- .../include/hpx/collectives/fold.hpp | 2 +- .../include/hpx/collectives/reduce_direct.hpp | 2 +- libs/full/collectives/src/latch.cpp | 2 +- .../distribution_policy_executor.hpp | 2 +- .../include/include/hpx/include/actions.hpp | 2 +- .../include/hpx/include/components.hpp | 2 +- .../hpx/lcos_distributed/server/channel.hpp | 2 +- .../include/hpx/parcelset/parcel.hpp | 2 +- .../parcelset/src/detail/parcel_await.cpp | 2 +- libs/full/parcelset/src/parcel.cpp | 2 +- .../server/base_performance_counter.hpp | 2 +- .../server/component_namespace_counters.hpp | 2 +- .../server/locality_namespace_counters.hpp | 2 +- .../server/primary_namespace_counters.hpp | 2 +- .../server/symbol_namespace_counters.hpp | 2 +- .../src/counter_creators.cpp | 2 +- .../src/server/base_performance_counter.cpp | 2 +- .../distributed_metadata_base.hpp | 2 +- .../server/console_error_sink.hpp | 2 +- .../server/console_logging.hpp | 2 +- .../src/server/console_error_sink_server.cpp | 2 +- .../src/server/console_logging_server.cpp | 2 +- .../server/runtime_support.hpp | 2 +- modularize.py | 51 ++++++++ replace_actions.py | 40 ++++++ 47 files changed, 255 insertions(+), 149 deletions(-) create mode 100644 libs/full/actions/include/hpx/actions/macros.hpp create mode 100644 modularize.py create mode 100644 replace_actions.py diff --git a/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp b/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp index 9a5bb87cb0b8..5aacafadf51f 100644 --- a/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp +++ b/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp b/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp index 967ee9aa4cbd..ac8af57d32ab 100644 --- a/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp +++ b/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp @@ -17,7 +17,7 @@ /// classes are asynchronous API which return the futures. #include -#include +#include #include #include #include diff --git a/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp b/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp index 1fb205edcb23..360178fac048 100644 --- a/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp +++ b/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp @@ -17,7 +17,7 @@ /// classes are asynchronous API which return the futures. #include -#include +#include #include #include #include diff --git a/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp b/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp index aa7f1e6649c7..d194462b08c4 100644 --- a/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp +++ b/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp @@ -8,7 +8,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/components/process/include/hpx/components/process/server/child.hpp b/components/process/include/hpx/components/process/server/child.hpp index e87ea97c4a15..a23ca7190456 100644 --- a/components/process/include/hpx/components/process/server/child.hpp +++ b/components/process/include/hpx/components/process/server/child.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/actions/CMakeLists.txt b/libs/full/actions/CMakeLists.txt index 5f5da56abc58..c65c971afa44 100644 --- a/libs/full/actions/CMakeLists.txt +++ b/libs/full/actions/CMakeLists.txt @@ -16,6 +16,7 @@ set(actions_headers hpx/actions/actions_fwd.hpp hpx/actions/base_action.hpp hpx/actions/invoke_function.hpp + hpx/actions/macros.hpp hpx/actions/post_helper_fwd.hpp hpx/actions/post_helper.hpp hpx/actions/register_action.hpp @@ -23,6 +24,8 @@ set(actions_headers hpx/actions/transfer_action.hpp ) +set(actions_macro_headers hpx/actions/macros.hpp) + # Default location is $HPX_ROOT/libs/actions/include_compatibility # cmake-format: off set(actions_compat_headers @@ -46,6 +49,7 @@ add_hpx_module( GLOBAL_HEADER_MODULE_GEN ON SOURCES ${actions_sources} HEADERS ${actions_headers} + MACRO_HEADERS ${actions_macro_headers} COMPAT_HEADERS ${actions_compat_headers} MODULE_DEPENDENCIES hpx_actions_base hpx_components_base hpx_naming_base hpx_parcelset_base diff --git a/libs/full/actions/include/hpx/actions/base_action.hpp b/libs/full/actions/include/hpx/actions/base_action.hpp index 379e2dea7fc1..f5a01872972a 100644 --- a/libs/full/actions/include/hpx/actions/base_action.hpp +++ b/libs/full/actions/include/hpx/actions/base_action.hpp @@ -194,109 +194,7 @@ namespace hpx::serialization { } // namespace hpx::serialization #include - -// Helper macro for action serialization, each of the defined actions needs to -// be registered with the serialization library -#define HPX_DEFINE_GET_ACTION_NAME(action) \ - HPX_DEFINE_GET_ACTION_NAME_(action, action) \ - /**/ - -#define HPX_DEFINE_GET_ACTION_NAME_(action, actionname) \ - HPX_DEFINE_GET_ACTION_NAME_ITT(action, actionname) \ - namespace hpx::actions::detail { \ - template <> \ - HPX_ALWAYS_EXPORT char const* get_action_name() noexcept \ - { \ - return HPX_PP_STRINGIZE(actionname); \ - } \ - } \ - /**/ -/**/ - -/////////////////////////////////////////////////////////////////////////////// -#if defined(HPX_HAVE_ITTNOTIFY) && HPX_HAVE_ITTNOTIFY != 0 && \ - !defined(HPX_HAVE_APEX) -#define HPX_DEFINE_GET_ACTION_NAME_ITT(action, actionname) \ - namespace hpx::actions::detail { \ - template <> \ - HPX_ALWAYS_EXPORT util::itt::string_handle const& \ - get_action_name_itt() noexcept \ - { \ - static util::itt::string_handle sh(HPX_PP_STRINGIZE(actionname)); \ - return sh; \ - } \ - } \ - /**/ - -#define HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID_ITT(action) \ - namespace hpx::actions::detail { \ - template <> \ - HPX_ALWAYS_EXPORT util::itt::string_handle const& \ - get_action_name_itt() noexcept; \ - } \ -/**/ -#else // HPX_HAVE_ITTNOTIFY != 0 && !defined(HPX_HAVE_APEX) -#define HPX_DEFINE_GET_ACTION_NAME_ITT(action, actionname) /**/ -#define HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID_ITT(action) /**/ -#endif // HPX_HAVE_ITTNOTIFY != 0 && !defined(HPX_HAVE_APEX) - -#define HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID(action) \ - HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID_ITT(action) \ - namespace hpx::actions::detail { \ - template <> \ - HPX_ALWAYS_EXPORT char const* get_action_name() noexcept; \ - } \ - HPX_REGISTER_ACTION_EXTERN_DECLARATION(action) \ - \ - namespace hpx::traits { \ - template <> \ - struct is_action : std::true_type \ - { \ - }; \ - template <> \ - struct needs_automatic_registration : std::false_type \ - { \ - }; \ - } \ - /**/ - -#define HPX_REGISTER_ACTION_DECLARATION_2(action, actionname) \ - HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID(action) \ - /**/ - -#if defined(HPX_MSVC) || defined(HPX_MINGW) -#define HPX_REGISTER_ACTION_2(action, actionname) \ - HPX_DEFINE_GET_ACTION_NAME_(action, actionname) \ - HPX_REGISTER_ACTION_INVOCATION_COUNT(action) \ - HPX_REGISTER_PER_ACTION_DATA_COUNTER_TYPES(action) \ - namespace hpx::actions { \ - template struct HPX_ALWAYS_EXPORT transfer_action; \ - template struct HPX_ALWAYS_EXPORT \ - transfer_continuation_action; \ - } \ -/**/ -#define HPX_REGISTER_ACTION_EXTERN_DECLARATION(action) /**/ - -#else // defined(HPX_MSVC) || defined(HPX_MINGW) - -#define HPX_REGISTER_ACTION_2(action, actionname) \ - HPX_DEFINE_GET_ACTION_NAME_(action, actionname) \ - HPX_REGISTER_ACTION_INVOCATION_COUNT(action) \ - HPX_REGISTER_PER_ACTION_DATA_COUNTER_TYPES(action) \ - namespace hpx::actions { \ - template struct transfer_action; \ - template struct transfer_continuation_action; \ - } \ -/**/ -#define HPX_REGISTER_ACTION_EXTERN_DECLARATION(action) \ - namespace hpx::actions { \ - extern template struct HPX_ALWAYS_IMPORT transfer_action; \ - extern template struct HPX_ALWAYS_IMPORT \ - transfer_continuation_action; \ - } \ - /**/ - -#endif // defined(HPX_MSVC) || defined(HPX_MINGW) +#include HPX_TRAITS_SERIALIZED_WITH_ID(hpx::actions::base_action) HPX_TRAITS_SERIALIZED_WITH_ID(hpx::actions::base_action_data) diff --git a/libs/full/actions/include/hpx/actions/macros.hpp b/libs/full/actions/include/hpx/actions/macros.hpp new file mode 100644 index 000000000000..ddf28464ca8d --- /dev/null +++ b/libs/full/actions/include/hpx/actions/macros.hpp @@ -0,0 +1,117 @@ +// Copyright (c) 2026 Arpit Khandelwal +// +// SPDX-License-Identifier: BSL-1.0 +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#pragma once + +#include +#include + +#if defined(HPX_HAVE_NETWORKING) + +// Helper macro for action serialization; each of the defined actions needs to +// be registered with the serialization library. + +#define HPX_DEFINE_GET_ACTION_NAME(action) \ + HPX_DEFINE_GET_ACTION_NAME_(action, action) \ + /**/ + +#define HPX_DEFINE_GET_ACTION_NAME_(action, actionname) \ + HPX_DEFINE_GET_ACTION_NAME_ITT(action, actionname) \ + namespace hpx::actions::detail { \ + template <> \ + HPX_ALWAYS_EXPORT char const* get_action_name() noexcept \ + { \ + return HPX_PP_STRINGIZE(actionname); \ + } \ + } \ + /**/ + +/////////////////////////////////////////////////////////////////////////////// +#if defined(HPX_HAVE_ITTNOTIFY) && HPX_HAVE_ITTNOTIFY != 0 && \ + !defined(HPX_HAVE_APEX) +#define HPX_DEFINE_GET_ACTION_NAME_ITT(action, actionname) \ + namespace hpx::actions::detail { \ + template <> \ + HPX_ALWAYS_EXPORT util::itt::string_handle const& \ + get_action_name_itt() noexcept \ + { \ + static util::itt::string_handle sh(HPX_PP_STRINGIZE(actionname)); \ + return sh; \ + } \ + } \ + /**/ + +#define HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID_ITT(action) \ + namespace hpx::actions::detail { \ + template <> \ + HPX_ALWAYS_EXPORT util::itt::string_handle const& \ + get_action_name_itt() noexcept; \ + } \ +/**/ +#else // HPX_HAVE_ITTNOTIFY != 0 && !defined(HPX_HAVE_APEX) +#define HPX_DEFINE_GET_ACTION_NAME_ITT(action, actionname) /**/ +#define HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID_ITT(action) /**/ +#endif // HPX_HAVE_ITTNOTIFY != 0 && !defined(HPX_HAVE_APEX) + +#define HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID(action) \ + HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID_ITT(action) \ + namespace hpx::actions::detail { \ + template <> \ + HPX_ALWAYS_EXPORT char const* get_action_name() noexcept; \ + } \ + HPX_REGISTER_ACTION_EXTERN_DECLARATION(action) \ + \ + namespace hpx::traits { \ + template <> \ + struct is_action : std::true_type \ + { \ + }; \ + template <> \ + struct needs_automatic_registration : std::false_type \ + { \ + }; \ + } \ + /**/ + +#define HPX_REGISTER_ACTION_DECLARATION_2(action, actionname) \ + HPX_REGISTER_ACTION_DECLARATION_NO_DEFAULT_GUID(action) \ + /**/ + +#if defined(HPX_MSVC) || defined(HPX_MINGW) +#define HPX_REGISTER_ACTION_2(action, actionname) \ + HPX_DEFINE_GET_ACTION_NAME_(action, actionname) \ + HPX_REGISTER_ACTION_INVOCATION_COUNT(action) \ + HPX_REGISTER_PER_ACTION_DATA_COUNTER_TYPES(action) \ + namespace hpx::actions { \ + template struct HPX_ALWAYS_EXPORT transfer_action; \ + template struct HPX_ALWAYS_EXPORT \ + transfer_continuation_action; \ + } \ +/**/ +#define HPX_REGISTER_ACTION_EXTERN_DECLARATION(action) /**/ + +#else // defined(HPX_MSVC) || defined(HPX_MINGW) + +#define HPX_REGISTER_ACTION_2(action, actionname) \ + HPX_DEFINE_GET_ACTION_NAME_(action, actionname) \ + HPX_REGISTER_ACTION_INVOCATION_COUNT(action) \ + HPX_REGISTER_PER_ACTION_DATA_COUNTER_TYPES(action) \ + namespace hpx::actions { \ + template struct transfer_action; \ + template struct transfer_continuation_action; \ + } \ +/**/ +#define HPX_REGISTER_ACTION_EXTERN_DECLARATION(action) \ + namespace hpx::actions { \ + extern template struct HPX_ALWAYS_IMPORT transfer_action; \ + extern template struct HPX_ALWAYS_IMPORT \ + transfer_continuation_action; \ + } \ + /**/ + +#endif // defined(HPX_MSVC) || defined(HPX_MINGW) + +#endif // HPX_HAVE_NETWORKING diff --git a/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp index 6c5b3dea0a2b..09744010efde 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp @@ -8,7 +8,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp index 0672f6368537..ba90a956dbe2 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp index a6fa6e9d0b70..b0ae061436e1 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp @@ -11,7 +11,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp index 641112a826ec..04a00ec79c24 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp index 32609786bafe..50341996bdfe 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp index 457296b3eae0..5f9b721043c8 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp @@ -8,7 +8,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp b/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp index 17887c1d3644..7aea20ab1f72 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp @@ -8,7 +8,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp b/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp index f6e9a4999d08..4ae15535ea4d 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp @@ -19,8 +19,7 @@ #include #include -#include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp b/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp index c8beae230cc5..909e6809ab9c 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp @@ -12,10 +12,7 @@ #include -#include -#include -#include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp b/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp index c6bdf1490fb4..587897661286 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/async_distributed/src/base_lco.cpp b/libs/full/async_distributed/src/base_lco.cpp index 2efb1a1a1772..a08319ec3d92 100644 --- a/libs/full/async_distributed/src/base_lco.cpp +++ b/libs/full/async_distributed/src/base_lco.cpp @@ -5,7 +5,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include +#include #include #include #include diff --git a/libs/full/async_distributed/src/continuation.cpp b/libs/full/async_distributed/src/continuation.cpp index f6cb51b94c5b..96f64da5bab8 100644 --- a/libs/full/async_distributed/src/continuation.cpp +++ b/libs/full/async_distributed/src/continuation.cpp @@ -6,7 +6,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp b/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp index 0b8c0839ebad..373f13873894 100644 --- a/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp +++ b/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp @@ -128,7 +128,7 @@ namespace hpx { namespace lcos { #include #if !defined(HPX_COMPUTE_DEVICE_CODE) -#include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/detail/latch.hpp b/libs/full/collectives/include/hpx/collectives/detail/latch.hpp index de2af35d2576..ef6a3c61b3e2 100644 --- a/libs/full/collectives/include/hpx/collectives/detail/latch.hpp +++ b/libs/full/collectives/include/hpx/collectives/detail/latch.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/fold.hpp b/libs/full/collectives/include/hpx/collectives/fold.hpp index b242cffee9e6..8e6edc27c3d2 100644 --- a/libs/full/collectives/include/hpx/collectives/fold.hpp +++ b/libs/full/collectives/include/hpx/collectives/fold.hpp @@ -158,7 +158,7 @@ namespace hpx { namespace lcos { #else #include -#include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp b/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp index 3dcdceaa95e9..0cb5908eb316 100644 --- a/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp +++ b/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp @@ -74,7 +74,7 @@ namespace hpx { namespace lcos { #else #include -#include +#include #include #include #include diff --git a/libs/full/collectives/src/latch.cpp b/libs/full/collectives/src/latch.cpp index 69c424be160c..35b3c1d7c0ca 100644 --- a/libs/full/collectives/src/latch.cpp +++ b/libs/full/collectives/src/latch.cpp @@ -4,7 +4,7 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include +#include #include #include #include diff --git a/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp b/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp index 527a87f4c9d2..32a727708a64 100644 --- a/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp +++ b/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/include/include/hpx/include/actions.hpp b/libs/full/include/include/hpx/include/actions.hpp index 2f48f4fdf19a..bb55c435f3ca 100644 --- a/libs/full/include/include/hpx/include/actions.hpp +++ b/libs/full/include/include/hpx/include/actions.hpp @@ -8,7 +8,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/include/include/hpx/include/components.hpp b/libs/full/include/include/hpx/include/components.hpp index 2c727ef6ba9a..232fc0cb6125 100644 --- a/libs/full/include/include/hpx/include/components.hpp +++ b/libs/full/include/include/hpx/include/components.hpp @@ -18,7 +18,7 @@ #include -#include +#include #include #include diff --git a/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp b/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp index a315393f429f..ad4c8ccf7a63 100644 --- a/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp +++ b/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/parcelset/include/hpx/parcelset/parcel.hpp b/libs/full/parcelset/include/hpx/parcelset/parcel.hpp index 8f3a742c1766..ec082b066c70 100644 --- a/libs/full/parcelset/include/hpx/parcelset/parcel.hpp +++ b/libs/full/parcelset/include/hpx/parcelset/parcel.hpp @@ -13,7 +13,7 @@ #include #include -#include +#include #include #include diff --git a/libs/full/parcelset/src/detail/parcel_await.cpp b/libs/full/parcelset/src/detail/parcel_await.cpp index a50aa1bddf8b..8a81ec3816b6 100644 --- a/libs/full/parcelset/src/detail/parcel_await.cpp +++ b/libs/full/parcelset/src/detail/parcel_await.cpp @@ -14,7 +14,7 @@ #include #include -#include +#include #include #include diff --git a/libs/full/parcelset/src/parcel.cpp b/libs/full/parcelset/src/parcel.cpp index fbd877dfb56b..f2f32fc394d7 100644 --- a/libs/full/parcelset/src/parcel.cpp +++ b/libs/full/parcelset/src/parcel.cpp @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp index 083e9556c894..54c4517b44e7 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp index 7bec379f314d..2d899d44c71e 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp index d5b7e945d0cd..dbc40879ef0c 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp index b8d22384cafe..66da913bdaa8 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp index 3da18ed6a0cb..d0572a7b9533 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include diff --git a/libs/full/performance_counters/src/counter_creators.cpp b/libs/full/performance_counters/src/counter_creators.cpp index 94f24b63469f..2cb06f0f0f6a 100644 --- a/libs/full/performance_counters/src/counter_creators.cpp +++ b/libs/full/performance_counters/src/counter_creators.cpp @@ -5,7 +5,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include +#include #include #include #include diff --git a/libs/full/performance_counters/src/server/base_performance_counter.cpp b/libs/full/performance_counters/src/server/base_performance_counter.cpp index 13da08c4f994..56689493d1e3 100644 --- a/libs/full/performance_counters/src/server/base_performance_counter.cpp +++ b/libs/full/performance_counters/src/server/base_performance_counter.cpp @@ -5,7 +5,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp b/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp index fa727a45fbcb..a48179123386 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp b/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp index cb1afe59f39f..7f0b4e02e437 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp @@ -7,7 +7,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp b/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp index 4917069dac28..be4026da38f8 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp @@ -8,7 +8,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/libs/full/runtime_components/src/server/console_error_sink_server.cpp b/libs/full/runtime_components/src/server/console_error_sink_server.cpp index 30123b981326..2fcd617c0093 100644 --- a/libs/full/runtime_components/src/server/console_error_sink_server.cpp +++ b/libs/full/runtime_components/src/server/console_error_sink_server.cpp @@ -6,7 +6,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include +#include #include #include #include diff --git a/libs/full/runtime_components/src/server/console_logging_server.cpp b/libs/full/runtime_components/src/server/console_logging_server.cpp index dacbbe8a61dc..d715d7eb5ae8 100644 --- a/libs/full/runtime_components/src/server/console_logging_server.cpp +++ b/libs/full/runtime_components/src/server/console_logging_server.cpp @@ -6,7 +6,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include +#include #include #include #include diff --git a/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp b/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp index ede89fa24aa3..2b0a10d556b0 100644 --- a/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp +++ b/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp @@ -9,7 +9,7 @@ #pragma once #include -#include +#include #include #include #include diff --git a/modularize.py b/modularize.py new file mode 100644 index 000000000000..c421dc3d7aa5 --- /dev/null +++ b/modularize.py @@ -0,0 +1,51 @@ +import os +import re +import glob + +def process_file(filepath): + with open(filepath, 'r') as f: + content = f.read() + + if "GLOBAL_HEADER_MODULE_GEN" in content: + return + + # Find the add_hpx_module block + add_module_match = re.search(r'add_hpx_module\s*\([^)]+\)', content, re.DOTALL) + if not add_module_match: + return + + add_module_block = add_module_match.group(0) + + # find detail headers + detail_headers = set() + # matches set(module_headers ...) and also the headers inside + headers_matches = re.findall(r'hpx/[a-zA-Z0-9_]+/detail/[a-zA-Z0-9_./]+\.hpp', content) + for h in headers_matches: + detail_headers.add(h) + + # Prepare replacements + add_lines = [" GLOBAL_HEADER_MODULE_GEN ON"] + if detail_headers: + add_lines.append(f' ADD_TO_GLOBAL_HEADER {" ".join(sorted(detail_headers))}') + + # Insert into add_hpx_module block + # We will insert right after GLOBAL_HEADER_GEN ON + if 'GLOBAL_HEADER_GEN ON' in add_module_block: + replacement = add_module_block.replace('GLOBAL_HEADER_GEN ON', 'GLOBAL_HEADER_GEN ON\n' + '\n'.join(add_lines)) + new_content = content.replace(add_module_block, replacement) + else: + # insert after the first line of add_hpx_module which is the module type and name + # e.g. core async_sycl + lines = add_module_block.split('\n') + # lines[1] is usually the type and name + lines.insert(2, '\n'.join(add_lines)) + replacement = '\n'.join(lines) + new_content = content.replace(add_module_block, replacement) + + with open(filepath, 'w') as f: + f.write(new_content) + print(f"Modularized {filepath}") + +for cmake_file in glob.glob('libs/*/*/CMakeLists.txt'): + process_file(cmake_file) + diff --git a/replace_actions.py b/replace_actions.py new file mode 100644 index 000000000000..5d78b6daabd6 --- /dev/null +++ b/replace_actions.py @@ -0,0 +1,40 @@ +import os +import re + +skip_pattern = re.compile(r"^libs/full/actions/") +include_pattern = re.compile(r'^[ \t]*#[ \t]*include[ \t]+]+>.*$', re.MULTILINE) +module_include = "#include " + +def process_file(filepath): + if skip_pattern.match(filepath): return + try: + with open(filepath, 'r', encoding='utf-8') as f: content = f.read() + except UnicodeDecodeError: + with open(filepath, 'r', encoding='latin-1') as f: content = f.read() + + if not include_pattern.search(content): return + + lines = content.split('\n') + new_lines, added_module, modified = [], False, False + + for line in lines: + if include_pattern.match(line): + modified = True + if not added_module: + new_lines.append(module_include) + added_module = True + else: + if line.strip() == module_include: added_module = True + new_lines.append(line) + + if modified: + with open(filepath, 'w', encoding='utf-8') as f: f.write('\n'.join(new_lines)) + +if __name__ == '__main__': + for root, dirs, files in os.walk('.'): + if '.git' in dirs: dirs.remove('.git') + if 'build' in dirs: dirs.remove('build') + for file in files: + if file.endswith(('.hpp', '.cpp')): + filepath = os.path.relpath(os.path.join(root, file), '.') + process_file(filepath) From ee3d2d688fad51fe905c7b97131ea45bf94aae48 Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 12:34:40 +0530 Subject: [PATCH 3/8] Fix CI module build failures for init_runtime and parcelports headers --- .../actions/include/hpx/actions/macros.hpp | 1 + libs/full/init_runtime/CMakeLists.txt | 5 +- libs/full/parcelports/CMakeLists.txt | 2 +- modularize.py | 51 ------------------- replace_actions.py | 40 --------------- 5 files changed, 5 insertions(+), 94 deletions(-) delete mode 100644 modularize.py delete mode 100644 replace_actions.py diff --git a/libs/full/actions/include/hpx/actions/macros.hpp b/libs/full/actions/include/hpx/actions/macros.hpp index ddf28464ca8d..54fb79b108be 100644 --- a/libs/full/actions/include/hpx/actions/macros.hpp +++ b/libs/full/actions/include/hpx/actions/macros.hpp @@ -7,6 +7,7 @@ #pragma once #include +#include #include #if defined(HPX_HAVE_NETWORKING) diff --git a/libs/full/init_runtime/CMakeLists.txt b/libs/full/init_runtime/CMakeLists.txt index 84ab8b93f272..7a3f2d54bbb1 100644 --- a/libs/full/init_runtime/CMakeLists.txt +++ b/libs/full/init_runtime/CMakeLists.txt @@ -46,8 +46,9 @@ include(HPX_AddModule) add_hpx_module( full init_runtime GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/init_runtime/detail/init_logging.hpp hpx/init_runtime/detail/run_or_start.hpp - GLOBAL_HEADER_GEN OFF + ADD_TO_GLOBAL_HEADER hpx/init_runtime/detail/init_logging.hpp + hpx/init_runtime/detail/run_or_start.hpp + GLOBAL_HEADER_GEN ON HEADERS ${init_runtime_headers} SOURCES ${init_runtime_sources} DEPENDENCIES hpx_core diff --git a/libs/full/parcelports/CMakeLists.txt b/libs/full/parcelports/CMakeLists.txt index fb83d09c138e..d11e2d3a7e44 100644 --- a/libs/full/parcelports/CMakeLists.txt +++ b/libs/full/parcelports/CMakeLists.txt @@ -50,7 +50,7 @@ include(HPX_AddModule) add_hpx_module( full parcelports GLOBAL_HEADER_MODULE_GEN ON - GLOBAL_HEADER_GEN OFF + GLOBAL_HEADER_GEN ON GENERATED_HEADERS ${parcelports_generated_headers} SOURCES ${parcelports_sources} HEADERS ${parcelports_headers} diff --git a/modularize.py b/modularize.py deleted file mode 100644 index c421dc3d7aa5..000000000000 --- a/modularize.py +++ /dev/null @@ -1,51 +0,0 @@ -import os -import re -import glob - -def process_file(filepath): - with open(filepath, 'r') as f: - content = f.read() - - if "GLOBAL_HEADER_MODULE_GEN" in content: - return - - # Find the add_hpx_module block - add_module_match = re.search(r'add_hpx_module\s*\([^)]+\)', content, re.DOTALL) - if not add_module_match: - return - - add_module_block = add_module_match.group(0) - - # find detail headers - detail_headers = set() - # matches set(module_headers ...) and also the headers inside - headers_matches = re.findall(r'hpx/[a-zA-Z0-9_]+/detail/[a-zA-Z0-9_./]+\.hpp', content) - for h in headers_matches: - detail_headers.add(h) - - # Prepare replacements - add_lines = [" GLOBAL_HEADER_MODULE_GEN ON"] - if detail_headers: - add_lines.append(f' ADD_TO_GLOBAL_HEADER {" ".join(sorted(detail_headers))}') - - # Insert into add_hpx_module block - # We will insert right after GLOBAL_HEADER_GEN ON - if 'GLOBAL_HEADER_GEN ON' in add_module_block: - replacement = add_module_block.replace('GLOBAL_HEADER_GEN ON', 'GLOBAL_HEADER_GEN ON\n' + '\n'.join(add_lines)) - new_content = content.replace(add_module_block, replacement) - else: - # insert after the first line of add_hpx_module which is the module type and name - # e.g. core async_sycl - lines = add_module_block.split('\n') - # lines[1] is usually the type and name - lines.insert(2, '\n'.join(add_lines)) - replacement = '\n'.join(lines) - new_content = content.replace(add_module_block, replacement) - - with open(filepath, 'w') as f: - f.write(new_content) - print(f"Modularized {filepath}") - -for cmake_file in glob.glob('libs/*/*/CMakeLists.txt'): - process_file(cmake_file) - diff --git a/replace_actions.py b/replace_actions.py deleted file mode 100644 index 5d78b6daabd6..000000000000 --- a/replace_actions.py +++ /dev/null @@ -1,40 +0,0 @@ -import os -import re - -skip_pattern = re.compile(r"^libs/full/actions/") -include_pattern = re.compile(r'^[ \t]*#[ \t]*include[ \t]+]+>.*$', re.MULTILINE) -module_include = "#include " - -def process_file(filepath): - if skip_pattern.match(filepath): return - try: - with open(filepath, 'r', encoding='utf-8') as f: content = f.read() - except UnicodeDecodeError: - with open(filepath, 'r', encoding='latin-1') as f: content = f.read() - - if not include_pattern.search(content): return - - lines = content.split('\n') - new_lines, added_module, modified = [], False, False - - for line in lines: - if include_pattern.match(line): - modified = True - if not added_module: - new_lines.append(module_include) - added_module = True - else: - if line.strip() == module_include: added_module = True - new_lines.append(line) - - if modified: - with open(filepath, 'w', encoding='utf-8') as f: f.write('\n'.join(new_lines)) - -if __name__ == '__main__': - for root, dirs, files in os.walk('.'): - if '.git' in dirs: dirs.remove('.git') - if 'build' in dirs: dirs.remove('build') - for file in files: - if file.endswith(('.hpp', '.cpp')): - filepath = os.path.relpath(os.path.join(root, file), '.') - process_file(filepath) From a5ba56afdfce0e366f91cfd7d3b133bc6399bf1a Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 12:51:58 +0530 Subject: [PATCH 4/8] Fix include ordering to pass clang-format CI check --- .../component_storage/server/component_storage.hpp | 2 +- .../partitioned_vector_component_decl.hpp | 2 +- .../unordered/partition_unordered_map_component.hpp | 2 +- .../components/iostreams/server/output_stream.hpp | 2 +- .../include/hpx/components/process/server/child.hpp | 2 +- .../include/hpx/parallel/algorithms/shift_left.hpp | 5 ++--- .../include/hpx/parallel/algorithms/shift_right.hpp | 5 ++--- .../hpx/parallel/container_algorithms/find.hpp | 12 +++++------- .../hpx/parallel/container_algorithms/iota.hpp | 5 ++--- .../include/hpx/execution/algorithms/when_all.hpp | 5 +++-- .../execution/executors/execution_parameters_fwd.hpp | 12 ++++++------ .../hpx/execution_base/completion_signatures.hpp | 4 ++-- .../include/hpx/threading_base/thread_data.hpp | 5 +++-- libs/full/actions/include/hpx/actions/macros.hpp | 3 +++ .../hpx/agas_base/server/component_namespace.hpp | 2 +- .../hpx/agas_base/server/locality_namespace.hpp | 2 +- .../hpx/agas_base/server/primary_namespace.hpp | 2 +- .../hpx/agas_base/server/symbol_namespace.hpp | 2 +- .../include/hpx/async_distributed/base_lco.hpp | 2 +- .../hpx/async_distributed/base_lco_with_value.hpp | 2 +- .../include/hpx/async_distributed/detail/post.hpp | 2 +- .../include/hpx/async_distributed/put_parcel.hpp | 2 +- .../transfer_continuation_action.hpp | 2 +- .../include/hpx/async_distributed/trigger_lco.hpp | 2 +- libs/full/async_distributed/src/base_lco.cpp | 2 +- libs/full/async_distributed/src/continuation.cpp | 2 +- .../include/hpx/collectives/broadcast_direct.hpp | 2 +- .../include/hpx/collectives/detail/latch.hpp | 2 +- .../collectives/include/hpx/collectives/fold.hpp | 2 +- .../include/hpx/collectives/reduce_direct.hpp | 2 +- libs/full/collectives/src/latch.cpp | 2 +- .../distribution_policy_executor.hpp | 2 +- libs/full/include/include/hpx/include/actions.hpp | 2 +- .../include/hpx/lcos_distributed/server/channel.hpp | 2 +- .../server/base_performance_counter.hpp | 2 +- .../server/component_namespace_counters.hpp | 2 +- .../server/locality_namespace_counters.hpp | 2 +- .../server/primary_namespace_counters.hpp | 2 +- .../server/symbol_namespace_counters.hpp | 2 +- .../performance_counters/src/counter_creators.cpp | 2 +- .../src/server/base_performance_counter.cpp | 2 +- .../runtime_components/distributed_metadata_base.hpp | 2 +- .../runtime_components/server/console_error_sink.hpp | 2 +- .../runtime_components/server/console_logging.hpp | 2 +- .../src/server/console_error_sink_server.cpp | 2 +- .../src/server/console_logging_server.cpp | 2 +- .../runtime_distributed/server/runtime_support.hpp | 2 +- wrap/src/hpx_wrap.cpp | 2 +- 48 files changed, 67 insertions(+), 67 deletions(-) diff --git a/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp b/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp index 5aacafadf51f..8b845facc25b 100644 --- a/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp +++ b/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp @@ -7,8 +7,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp b/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp index ac8af57d32ab..b311080a38db 100644 --- a/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp +++ b/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp @@ -17,9 +17,9 @@ /// classes are asynchronous API which return the futures. #include -#include #include #include +#include #include #include #include diff --git a/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp b/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp index 360178fac048..eb1508a33728 100644 --- a/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp +++ b/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp @@ -17,11 +17,11 @@ /// classes are asynchronous API which return the futures. #include -#include #include #include #include #include +#include #include #include #include diff --git a/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp b/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp index d194462b08c4..3e3210fc186c 100644 --- a/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp +++ b/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp @@ -8,8 +8,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/components/process/include/hpx/components/process/server/child.hpp b/components/process/include/hpx/components/process/server/child.hpp index a23ca7190456..616b0e946ec3 100644 --- a/components/process/include/hpx/components/process/server/child.hpp +++ b/components/process/include/hpx/components/process/server/child.hpp @@ -7,8 +7,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp index 913e632f64e8..97de954184a6 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/shift_left.hpp @@ -277,9 +277,8 @@ namespace hpx { ) // clang-format on friend typename hpx::parallel::util::detail::algorithm_result::type - tag_fallback_invoke(shift_left_t, ExPolicy&& policy, FwdIter first, - FwdIter last, Size n) + FwdIter>::type tag_fallback_invoke(shift_left_t, ExPolicy&& policy, + FwdIter first, FwdIter last, Size n) { static_assert(std::forward_iterator, "Requires at least forward iterator."); diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/shift_right.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/shift_right.hpp index a32f2d0bf0de..d0f383dfe225 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/shift_right.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/shift_right.hpp @@ -322,9 +322,8 @@ namespace hpx { ) // clang-format on friend typename hpx::parallel::util::detail::algorithm_result::type - tag_fallback_invoke(shift_right_t, ExPolicy&& policy, FwdIter first, - FwdIter last, Size n) + FwdIter>::type tag_fallback_invoke(shift_right_t, ExPolicy&& policy, + FwdIter first, FwdIter last, Size n) { static_assert(std::forward_iterator, "Requires at least forward iterator."); diff --git a/libs/core/algorithms/include/hpx/parallel/container_algorithms/find.hpp b/libs/core/algorithms/include/hpx/parallel/container_algorithms/find.hpp index c473a876acf8..0d3f330ecfc2 100644 --- a/libs/core/algorithms/include/hpx/parallel/container_algorithms/find.hpp +++ b/libs/core/algorithms/include/hpx/parallel/container_algorithms/find.hpp @@ -2261,9 +2261,8 @@ namespace hpx::ranges { ) // clang-format on friend hpx::parallel::util::detail::algorithm_result_t> - tag_fallback_invoke(find_if_not_t, ExPolicy&& policy, Rng&& rng, - Pred pred, Proj proj = Proj()) + std::ranges::iterator_t> tag_fallback_invoke(find_if_not_t, + ExPolicy&& policy, Rng&& rng, Pred pred, Proj proj = Proj()) { using iterator_type = std::ranges::iterator_t; @@ -2472,10 +2471,9 @@ namespace hpx::ranges { ) // clang-format on friend hpx::parallel::util::detail::algorithm_result_t> - tag_fallback_invoke(find_first_of_t, ExPolicy&& policy, Rng1&& rng1, - Rng2&& rng2, Pred op = Pred(), Proj1 proj1 = Proj1(), - Proj2 proj2 = Proj2()) + std::ranges::iterator_t> tag_fallback_invoke(find_first_of_t, + ExPolicy&& policy, Rng1&& rng1, Rng2&& rng2, Pred op = Pred(), + Proj1 proj1 = Proj1(), Proj2 proj2 = Proj2()) { using iterator_type = std::ranges::iterator_t; diff --git a/libs/core/algorithms/include/hpx/parallel/container_algorithms/iota.hpp b/libs/core/algorithms/include/hpx/parallel/container_algorithms/iota.hpp index 0990a29060f6..0b38aff1cfcd 100644 --- a/libs/core/algorithms/include/hpx/parallel/container_algorithms/iota.hpp +++ b/libs/core/algorithms/include/hpx/parallel/container_algorithms/iota.hpp @@ -189,9 +189,8 @@ namespace hpx::ranges { ) // clang-format on friend hpx::parallel::util::detail::algorithm_result_t> - tag_fallback_invoke( - iota_t, ExPolicy&& policy, FwdIter first, Sent last, T value) + iota_result> tag_fallback_invoke(iota_t, + ExPolicy&& policy, FwdIter first, Sent last, T value) { auto dist = hpx::parallel::detail::distance(first, last); diff --git a/libs/core/execution/include/hpx/execution/algorithms/when_all.hpp b/libs/core/execution/include/hpx/execution/algorithms/when_all.hpp index eb9dca7b5d51..d563e4c48370 100644 --- a/libs/core/execution/include/hpx/execution/algorithms/when_all.hpp +++ b/libs/core/execution/include/hpx/execution/algorithms/when_all.hpp @@ -580,8 +580,9 @@ namespace hpx::execution::experimental { // execution::transfer_when_all_with_variant is used to join multiple // sender chains and create a sender whose execution is dependent on all // the input senders, which may have one or more sets of sent values. - HPX_CXX_CORE_EXPORT inline constexpr struct transfer_when_all_with_variant_t - final : hpx::functional::tag + HPX_CXX_CORE_EXPORT inline constexpr struct + transfer_when_all_with_variant_t final + : hpx::functional::tag { } transfer_when_all_with_variant{}; diff --git a/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp b/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp index 142ab9b709ab..c08902e69f67 100644 --- a/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp +++ b/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp @@ -209,8 +209,8 @@ namespace hpx::execution::experimental { /// \note This calls params.reset_thread_distribution(exec) if it exists; /// otherwise it does nothing. /// - HPX_CXX_CORE_EXPORT inline constexpr struct reset_thread_distribution_t - final + HPX_CXX_CORE_EXPORT inline constexpr struct + reset_thread_distribution_t final : hpx::functional::detail::tag_priority { private: @@ -299,8 +299,8 @@ namespace hpx::execution::experimental { /// Generate a policy that supports setting the number of cores for /// execution. - HPX_CXX_CORE_EXPORT inline constexpr struct with_processing_units_count_t - final + HPX_CXX_CORE_EXPORT inline constexpr struct + with_processing_units_count_t final : hpx::functional::detail::tag_priority { } with_processing_units_count{}; @@ -434,8 +434,8 @@ namespace hpx::execution::experimental { /// \note This calls params.mark_begin_execution(exec) if it exists; /// otherwise it does nothing. /// - HPX_CXX_CORE_EXPORT inline constexpr struct collect_execution_parameters_t - final + HPX_CXX_CORE_EXPORT inline constexpr struct + collect_execution_parameters_t final : hpx::functional::detail::tag_priority { private: diff --git a/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp b/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp index 66be3065f3a0..5a84c3a4514b 100644 --- a/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp +++ b/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp @@ -397,8 +397,8 @@ namespace hpx::execution::experimental { // Otherwise, no-completion-signatures{}. // #if !defined(HPX_HAVE_STDEXEC) - HPX_CXX_CORE_EXPORT inline constexpr struct get_completion_signatures_t - final + HPX_CXX_CORE_EXPORT inline constexpr struct + get_completion_signatures_t final : hpx::functional::detail::tag_fallback { private: diff --git a/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp b/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp index 2f4025c1eb3c..97e118438327 100644 --- a/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp +++ b/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp @@ -672,8 +672,9 @@ namespace hpx::threads { } #if defined(HPX_HAVE_MODULE_TRACY) - HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT tracing::region_init_data - get_region_init_data(thread_data const* thrdptr); + HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT + tracing::region_init_data get_region_init_data( + thread_data const* thrdptr); HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT tracing::fiber_region_init_data get_fiber_region_init_data(thread_data const* thrdptr); diff --git a/libs/full/actions/include/hpx/actions/macros.hpp b/libs/full/actions/include/hpx/actions/macros.hpp index 54fb79b108be..4f20567bb694 100644 --- a/libs/full/actions/include/hpx/actions/macros.hpp +++ b/libs/full/actions/include/hpx/actions/macros.hpp @@ -12,6 +12,9 @@ #if defined(HPX_HAVE_NETWORKING) +#include +#include + // Helper macro for action serialization; each of the defined actions needs to // be registered with the serialization library. diff --git a/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp index 09744010efde..50c754e2745b 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp @@ -8,10 +8,10 @@ #pragma once #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp index ba90a956dbe2..da67d88ec48a 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp @@ -9,10 +9,10 @@ #pragma once #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp index b0ae061436e1..8e1a0a778bd8 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp @@ -11,11 +11,11 @@ #pragma once #include -#include #include #include #include #include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp index 04a00ec79c24..81f74853498f 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp @@ -9,10 +9,10 @@ #pragma once #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp index 50341996bdfe..3143ded17a21 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp @@ -7,9 +7,9 @@ #pragma once #include -#include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp index 5f9b721043c8..2293041c77c4 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp @@ -8,11 +8,11 @@ #pragma once #include -#include #include #include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp b/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp index 7aea20ab1f72..2e2d187af3df 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/detail/post.hpp @@ -8,12 +8,12 @@ #pragma once #include -#include #include #include #include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp b/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp index 4ae15535ea4d..2a75ae6a1bc9 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp @@ -19,9 +19,9 @@ #include #include -#include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp b/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp index 909e6809ab9c..86a7b049b69c 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/transfer_continuation_action.hpp @@ -12,9 +12,9 @@ #include -#include #include #include +#include #include #if defined(HPX_HAVE_NETWORKING) diff --git a/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp b/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp index 587897661286..f1a4dae6fb3a 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/trigger_lco.hpp @@ -9,13 +9,13 @@ #pragma once #include -#include #include #include #include #include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/src/base_lco.cpp b/libs/full/async_distributed/src/base_lco.cpp index a08319ec3d92..f5d34163f462 100644 --- a/libs/full/async_distributed/src/base_lco.cpp +++ b/libs/full/async_distributed/src/base_lco.cpp @@ -5,9 +5,9 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/src/continuation.cpp b/libs/full/async_distributed/src/continuation.cpp index 96f64da5bab8..145cfe4a92ec 100644 --- a/libs/full/async_distributed/src/continuation.cpp +++ b/libs/full/async_distributed/src/continuation.cpp @@ -6,10 +6,10 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp b/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp index 373f13873894..41b7338b2cc8 100644 --- a/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp +++ b/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp @@ -128,12 +128,12 @@ namespace hpx { namespace lcos { #include #if !defined(HPX_COMPUTE_DEVICE_CODE) -#include #include #include #include #include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/detail/latch.hpp b/libs/full/collectives/include/hpx/collectives/detail/latch.hpp index ef6a3c61b3e2..56d110455035 100644 --- a/libs/full/collectives/include/hpx/collectives/detail/latch.hpp +++ b/libs/full/collectives/include/hpx/collectives/detail/latch.hpp @@ -7,9 +7,9 @@ #pragma once #include -#include #include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/fold.hpp b/libs/full/collectives/include/hpx/collectives/fold.hpp index 8e6edc27c3d2..b7a5922733ac 100644 --- a/libs/full/collectives/include/hpx/collectives/fold.hpp +++ b/libs/full/collectives/include/hpx/collectives/fold.hpp @@ -158,10 +158,10 @@ namespace hpx { namespace lcos { #else #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp b/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp index 0cb5908eb316..f57e3fd17e60 100644 --- a/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp +++ b/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp @@ -74,10 +74,10 @@ namespace hpx { namespace lcos { #else #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/collectives/src/latch.cpp b/libs/full/collectives/src/latch.cpp index 35b3c1d7c0ca..44e7ad670434 100644 --- a/libs/full/collectives/src/latch.cpp +++ b/libs/full/collectives/src/latch.cpp @@ -4,12 +4,12 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -#include #include #include #include #include #include +#include #include #include #include diff --git a/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp b/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp index 32a727708a64..2cdc00038823 100644 --- a/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp +++ b/libs/full/executors_distributed/include/hpx/executors_distributed/distribution_policy_executor.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/libs/full/include/include/hpx/include/actions.hpp b/libs/full/include/include/hpx/include/actions.hpp index bb55c435f3ca..715466a8c970 100644 --- a/libs/full/include/include/hpx/include/actions.hpp +++ b/libs/full/include/include/hpx/include/actions.hpp @@ -8,9 +8,9 @@ #pragma once #include -#include #include #include #include #include +#include #include diff --git a/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp b/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp index ad4c8ccf7a63..a6fc4bb0bb7f 100644 --- a/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp +++ b/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp @@ -7,9 +7,9 @@ #pragma once #include -#include #include #include +#include #include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp index 54c4517b44e7..a664033ad3ce 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp @@ -7,9 +7,9 @@ #pragma once #include -#include #include #include +#include #include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp index 2d899d44c71e..d508704d4f8e 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp index dbc40879ef0c..cdafaf43e985 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp index 66da913bdaa8..ae126c40973f 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp index d0572a7b9533..50707eaa5e27 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/src/counter_creators.cpp b/libs/full/performance_counters/src/counter_creators.cpp index 2cb06f0f0f6a..72c9ec827db9 100644 --- a/libs/full/performance_counters/src/counter_creators.cpp +++ b/libs/full/performance_counters/src/counter_creators.cpp @@ -5,11 +5,11 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include #include #include #include #include +#include #include #include #include diff --git a/libs/full/performance_counters/src/server/base_performance_counter.cpp b/libs/full/performance_counters/src/server/base_performance_counter.cpp index 56689493d1e3..61d2acc6ae29 100644 --- a/libs/full/performance_counters/src/server/base_performance_counter.cpp +++ b/libs/full/performance_counters/src/server/base_performance_counter.cpp @@ -5,9 +5,9 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include #include #include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp b/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp index a48179123386..ca7ec94aa58a 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp @@ -7,10 +7,10 @@ #pragma once #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp b/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp index 7f0b4e02e437..40cac7b915eb 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp @@ -7,8 +7,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp b/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp index be4026da38f8..0057950e1d4a 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp @@ -8,8 +8,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/libs/full/runtime_components/src/server/console_error_sink_server.cpp b/libs/full/runtime_components/src/server/console_error_sink_server.cpp index 2fcd617c0093..2c561b5d9055 100644 --- a/libs/full/runtime_components/src/server/console_error_sink_server.cpp +++ b/libs/full/runtime_components/src/server/console_error_sink_server.cpp @@ -6,10 +6,10 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include #include #include #include +#include #include #include #include diff --git a/libs/full/runtime_components/src/server/console_logging_server.cpp b/libs/full/runtime_components/src/server/console_logging_server.cpp index d715d7eb5ae8..97ade062b16f 100644 --- a/libs/full/runtime_components/src/server/console_logging_server.cpp +++ b/libs/full/runtime_components/src/server/console_logging_server.cpp @@ -6,9 +6,9 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include #include #include +#include #include #include #include diff --git a/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp b/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp index 2b0a10d556b0..f4bc1826354e 100644 --- a/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp +++ b/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp @@ -9,10 +9,10 @@ #pragma once #include -#include #include #include #include +#include #include #include #include diff --git a/wrap/src/hpx_wrap.cpp b/wrap/src/hpx_wrap.cpp index c019dcaa9d16..e57177f5cc1c 100644 --- a/wrap/src/hpx_wrap.cpp +++ b/wrap/src/hpx_wrap.cpp @@ -32,7 +32,7 @@ namespace hpx_start { #endif // The default application name is populated by including hpx/hpx_main.hpp // or if HPX_AUTO_WRAP_MAIN_ACTIVATE is defined. - HPX_SYMBOL_EXPORT extern const char* app_name_libhpx_wrap; + HPX_SYMBOL_EXPORT extern char const* app_name_libhpx_wrap; HPX_SYMBOL_EXPORT const char* app_name_libhpx_wrap __attribute__((weak)) = HPX_APPLICATION_STRING; From d36ed2f3158a8f063f30622bba33ed5e0c5a7e12 Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 15:42:54 +0530 Subject: [PATCH 5/8] Fix transfer_action C++20 module visibility --- libs/full/actions/include/hpx/actions/macros.hpp | 2 -- .../include/hpx/async_distributed/base_lco_with_value.hpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/full/actions/include/hpx/actions/macros.hpp b/libs/full/actions/include/hpx/actions/macros.hpp index 4f20567bb694..4302a36cb636 100644 --- a/libs/full/actions/include/hpx/actions/macros.hpp +++ b/libs/full/actions/include/hpx/actions/macros.hpp @@ -12,8 +12,6 @@ #if defined(HPX_HAVE_NETWORKING) -#include -#include // Helper macro for action serialization; each of the defined actions needs to // be registered with the serialization library. diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp index 2293041c77c4..988078faa2e0 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include From f53b135411f5488d283c15a8bc5181c8e65671b7 Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 15:48:06 +0530 Subject: [PATCH 6/8] Fix clang-format issues in core --- .../hpx/execution/executors/execution_parameters_fwd.hpp | 4 ++-- .../include/hpx/execution_base/completion_signatures.hpp | 4 ++-- .../include/hpx/threading_base/thread_data.hpp | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp b/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp index c08902e69f67..a3ca95e3f048 100644 --- a/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp +++ b/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp @@ -434,8 +434,8 @@ namespace hpx::execution::experimental { /// \note This calls params.mark_begin_execution(exec) if it exists; /// otherwise it does nothing. /// - HPX_CXX_CORE_EXPORT inline constexpr struct - collect_execution_parameters_t final + HPX_CXX_CORE_EXPORT inline constexpr struct collect_execution_parameters_t + final : hpx::functional::detail::tag_priority { private: diff --git a/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp b/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp index 5a84c3a4514b..66be3065f3a0 100644 --- a/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp +++ b/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp @@ -397,8 +397,8 @@ namespace hpx::execution::experimental { // Otherwise, no-completion-signatures{}. // #if !defined(HPX_HAVE_STDEXEC) - HPX_CXX_CORE_EXPORT inline constexpr struct - get_completion_signatures_t final + HPX_CXX_CORE_EXPORT inline constexpr struct get_completion_signatures_t + final : hpx::functional::detail::tag_fallback { private: diff --git a/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp b/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp index 97e118438327..2f4025c1eb3c 100644 --- a/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp +++ b/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp @@ -672,9 +672,8 @@ namespace hpx::threads { } #if defined(HPX_HAVE_MODULE_TRACY) - HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT - tracing::region_init_data get_region_init_data( - thread_data const* thrdptr); + HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT tracing::region_init_data + get_region_init_data(thread_data const* thrdptr); HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT tracing::fiber_region_init_data get_fiber_region_init_data(thread_data const* thrdptr); From 4ac4103a948a2570766f5c03f04802707a5c9c59 Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 15:52:44 +0530 Subject: [PATCH 7/8] Run clang-format and cmake-format on all edited files --- .../executors/execution_parameters_fwd.hpp | 4 ++-- .../execution_base/completion_signatures.hpp | 4 ++-- .../include/hpx/threading_base/thread_data.hpp | 5 +++-- .../actions/include/hpx/actions/macros.hpp | 1 - libs/full/agas_base/CMakeLists.txt | 6 +++++- libs/full/async_colocated/CMakeLists.txt | 6 +++++- libs/full/async_distributed/CMakeLists.txt | 18 +++++++++++++++++- .../async_distributed/base_lco_with_value.hpp | 2 +- libs/full/collectives/CMakeLists.txt | 4 +++- libs/full/parcelset/CMakeLists.txt | 5 ++++- libs/full/performance_counters/CMakeLists.txt | 3 ++- 11 files changed, 44 insertions(+), 14 deletions(-) diff --git a/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp b/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp index a3ca95e3f048..c08902e69f67 100644 --- a/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp +++ b/libs/core/execution/include/hpx/execution/executors/execution_parameters_fwd.hpp @@ -434,8 +434,8 @@ namespace hpx::execution::experimental { /// \note This calls params.mark_begin_execution(exec) if it exists; /// otherwise it does nothing. /// - HPX_CXX_CORE_EXPORT inline constexpr struct collect_execution_parameters_t - final + HPX_CXX_CORE_EXPORT inline constexpr struct + collect_execution_parameters_t final : hpx::functional::detail::tag_priority { private: diff --git a/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp b/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp index 66be3065f3a0..5a84c3a4514b 100644 --- a/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp +++ b/libs/core/execution_base/include/hpx/execution_base/completion_signatures.hpp @@ -397,8 +397,8 @@ namespace hpx::execution::experimental { // Otherwise, no-completion-signatures{}. // #if !defined(HPX_HAVE_STDEXEC) - HPX_CXX_CORE_EXPORT inline constexpr struct get_completion_signatures_t - final + HPX_CXX_CORE_EXPORT inline constexpr struct + get_completion_signatures_t final : hpx::functional::detail::tag_fallback { private: diff --git a/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp b/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp index 2f4025c1eb3c..97e118438327 100644 --- a/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp +++ b/libs/core/threading_base/include/hpx/threading_base/thread_data.hpp @@ -672,8 +672,9 @@ namespace hpx::threads { } #if defined(HPX_HAVE_MODULE_TRACY) - HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT tracing::region_init_data - get_region_init_data(thread_data const* thrdptr); + HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT + tracing::region_init_data get_region_init_data( + thread_data const* thrdptr); HPX_CXX_CORE_EXPORT HPX_CORE_EXPORT tracing::fiber_region_init_data get_fiber_region_init_data(thread_data const* thrdptr); diff --git a/libs/full/actions/include/hpx/actions/macros.hpp b/libs/full/actions/include/hpx/actions/macros.hpp index 4302a36cb636..54fb79b108be 100644 --- a/libs/full/actions/include/hpx/actions/macros.hpp +++ b/libs/full/actions/include/hpx/actions/macros.hpp @@ -12,7 +12,6 @@ #if defined(HPX_HAVE_NETWORKING) - // Helper macro for action serialization; each of the defined actions needs to // be registered with the serialization library. diff --git a/libs/full/agas_base/CMakeLists.txt b/libs/full/agas_base/CMakeLists.txt index 618f328c4151..945b8a9fa128 100644 --- a/libs/full/agas_base/CMakeLists.txt +++ b/libs/full/agas_base/CMakeLists.txt @@ -67,7 +67,11 @@ add_hpx_module( full agas_base GLOBAL_HEADER_GEN ON GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/agas_base/detail/bootstrap_component_namespace.hpp hpx/agas_base/detail/bootstrap_locality_namespace.hpp hpx/agas_base/detail/hosted_component_namespace.hpp hpx/agas_base/detail/hosted_locality_namespace.hpp + ADD_TO_GLOBAL_HEADER + hpx/agas_base/detail/bootstrap_component_namespace.hpp + hpx/agas_base/detail/bootstrap_locality_namespace.hpp + hpx/agas_base/detail/hosted_component_namespace.hpp + hpx/agas_base/detail/hosted_locality_namespace.hpp SOURCES ${agas_base_sources} HEADERS ${agas_base_headers} COMPAT_HEADERS ${agas_base_compat_headers} diff --git a/libs/full/async_colocated/CMakeLists.txt b/libs/full/async_colocated/CMakeLists.txt index 7c90113209fa..7d46d894c4a3 100644 --- a/libs/full/async_colocated/CMakeLists.txt +++ b/libs/full/async_colocated/CMakeLists.txt @@ -49,7 +49,11 @@ add_hpx_module( full async_colocated GLOBAL_HEADER_GEN ON GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/async_distributed/detail/async_colocated.hpp hpx/async_distributed/detail/async_colocated_callback.hpp hpx/async_distributed/detail/async_colocated_callback_fwd.hpp hpx/async_distributed/detail/async_colocated_fwd.hpp + ADD_TO_GLOBAL_HEADER + hpx/async_distributed/detail/async_colocated.hpp + hpx/async_distributed/detail/async_colocated_callback.hpp + hpx/async_distributed/detail/async_colocated_callback_fwd.hpp + hpx/async_distributed/detail/async_colocated_fwd.hpp SOURCES ${async_colocated_sources} HEADERS ${async_colocated_headers} COMPAT_HEADERS ${async_colocated_compat_headers} diff --git a/libs/full/async_distributed/CMakeLists.txt b/libs/full/async_distributed/CMakeLists.txt index fcf21a178b4d..1380da60c817 100644 --- a/libs/full/async_distributed/CMakeLists.txt +++ b/libs/full/async_distributed/CMakeLists.txt @@ -120,7 +120,23 @@ include(HPX_AddModule) add_hpx_module( full async_distributed GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/async_distributed/detail/async_implementations.hpp hpx/async_distributed/detail/async_implementations_fwd.hpp hpx/async_distributed/detail/async_unwrap_result_implementations.hpp hpx/async_distributed/detail/async_unwrap_result_implementations_fwd.hpp hpx/async_distributed/detail/post.hpp hpx/async_distributed/detail/post_callback.hpp hpx/async_distributed/detail/post_continue.hpp hpx/async_distributed/detail/post_continue_callback.hpp hpx/async_distributed/detail/post_continue_fwd.hpp hpx/async_distributed/detail/post_implementations.hpp hpx/async_distributed/detail/post_implementations_fwd.hpp hpx/async_distributed/detail/promise_base.hpp hpx/async_distributed/detail/promise_lco.hpp hpx/async_distributed/detail/sync_implementations.hpp hpx/async_distributed/detail/sync_implementations_fwd.hpp hpx/async_distributed/detail/trigger.hpp + ADD_TO_GLOBAL_HEADER + hpx/async_distributed/detail/async_implementations.hpp + hpx/async_distributed/detail/async_implementations_fwd.hpp + hpx/async_distributed/detail/async_unwrap_result_implementations.hpp + hpx/async_distributed/detail/async_unwrap_result_implementations_fwd.hpp + hpx/async_distributed/detail/post.hpp + hpx/async_distributed/detail/post_callback.hpp + hpx/async_distributed/detail/post_continue.hpp + hpx/async_distributed/detail/post_continue_callback.hpp + hpx/async_distributed/detail/post_continue_fwd.hpp + hpx/async_distributed/detail/post_implementations.hpp + hpx/async_distributed/detail/post_implementations_fwd.hpp + hpx/async_distributed/detail/promise_base.hpp + hpx/async_distributed/detail/promise_lco.hpp + hpx/async_distributed/detail/sync_implementations.hpp + hpx/async_distributed/detail/sync_implementations_fwd.hpp + hpx/async_distributed/detail/trigger.hpp GLOBAL_HEADER_GEN OFF SOURCES ${async_sources} HEADERS ${async_headers} diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp index 988078faa2e0..d0fad3b94ef8 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp @@ -8,9 +8,9 @@ #pragma once #include +#include #include #include -#include #include #include #include diff --git a/libs/full/collectives/CMakeLists.txt b/libs/full/collectives/CMakeLists.txt index 9ca6841c3dc9..d0ab55dbd987 100644 --- a/libs/full/collectives/CMakeLists.txt +++ b/libs/full/collectives/CMakeLists.txt @@ -72,7 +72,9 @@ include(HPX_AddModule) add_hpx_module( full collectives GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/collectives/detail/channel_communicator.hpp hpx/collectives/detail/communicator.hpp hpx/collectives/detail/latch.hpp + ADD_TO_GLOBAL_HEADER + hpx/collectives/detail/channel_communicator.hpp + hpx/collectives/detail/communicator.hpp hpx/collectives/detail/latch.hpp SOURCES ${collectives_sources} HEADERS ${collectives_headers} COMPAT_HEADERS ${collectives_compat_headers} diff --git a/libs/full/parcelset/CMakeLists.txt b/libs/full/parcelset/CMakeLists.txt index fa96f9e9b7c2..573a0b42931b 100644 --- a/libs/full/parcelset/CMakeLists.txt +++ b/libs/full/parcelset/CMakeLists.txt @@ -57,7 +57,10 @@ add_hpx_module( full parcelset GLOBAL_HEADER_GEN ON GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/parcelset/detail/call_for_each.hpp hpx/parcelset/detail/message_handler_interface_functions.hpp hpx/parcelset/detail/parcel_await.hpp + ADD_TO_GLOBAL_HEADER + hpx/parcelset/detail/call_for_each.hpp + hpx/parcelset/detail/message_handler_interface_functions.hpp + hpx/parcelset/detail/parcel_await.hpp SOURCES ${parcelset_sources} HEADERS ${parcelset_headers} COMPAT_HEADERS ${parcelset_compat_headers} diff --git a/libs/full/performance_counters/CMakeLists.txt b/libs/full/performance_counters/CMakeLists.txt index a5ace185190b..7a7c183bdba5 100644 --- a/libs/full/performance_counters/CMakeLists.txt +++ b/libs/full/performance_counters/CMakeLists.txt @@ -88,7 +88,8 @@ add_hpx_module( full performance_counters GLOBAL_HEADER_GEN ON GLOBAL_HEADER_MODULE_GEN ON - ADD_TO_GLOBAL_HEADER hpx/performance_counters/detail/counter_interface_functions.hpp + ADD_TO_GLOBAL_HEADER + hpx/performance_counters/detail/counter_interface_functions.hpp SOURCES ${performance_counters_sources} HEADERS ${performance_counters_headers} DEPENDENCIES hpx_core From e8805e8f3ae59b7d5fa4a10d987bc10cc09bef36 Mon Sep 17 00:00:00 2001 From: arpittkhandelwal Date: Fri, 1 May 2026 17:55:37 +0530 Subject: [PATCH 8/8] actions: ensure actions.hpp precedes transfer_continuation_action.hpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In C++20 module builds, transfer_base_action must be declared before transfer_continuation_action.hpp uses it. When transfer_continuation_action.hpp is included first, the #pragma once guard prevents re-inclusion of actions.hpp, but in a modular build the definitions are only visible through a module import — not a repeated header include. This caused 'transfer_base_action must be declared before it is used' errors across iostreams, agas, performance_counters, runtime_components, and other components. Fix all 38 affected files by ensuring #include comes before #include . --- .../components/component_storage/server/component_storage.hpp | 2 +- components/component_storage/src/component_module.cpp | 1 + .../partitioned_vector/partitioned_vector_component_decl.hpp | 2 +- .../containers/unordered/partition_unordered_map_component.hpp | 2 +- .../include/hpx/components/iostreams/server/output_stream.hpp | 2 +- components/iostreams/src/component_module.cpp | 1 + .../process/include/hpx/components/process/server/child.hpp | 2 +- .../include/hpx/agas_base/server/component_namespace.hpp | 2 +- .../include/hpx/agas_base/server/locality_namespace.hpp | 2 +- .../include/hpx/agas_base/server/primary_namespace.hpp | 2 +- .../agas_base/include/hpx/agas_base/server/symbol_namespace.hpp | 2 +- libs/full/agas_base/src/component_namespace.cpp | 1 + .../include/hpx/async_distributed/base_lco.hpp | 2 +- .../include/hpx/async_distributed/base_lco_with_value.hpp | 2 +- .../include/hpx/async_distributed/put_parcel.hpp | 2 +- libs/full/async_distributed/src/base_lco.cpp | 2 +- libs/full/async_distributed/src/continuation.cpp | 2 +- .../collectives/include/hpx/collectives/broadcast_direct.hpp | 2 +- libs/full/collectives/include/hpx/collectives/detail/latch.hpp | 2 +- libs/full/collectives/include/hpx/collectives/fold.hpp | 2 +- libs/full/collectives/include/hpx/collectives/reduce_direct.hpp | 2 +- libs/full/collectives/src/latch.cpp | 2 +- libs/full/include/include/hpx/include/actions.hpp | 2 +- .../include/hpx/lcos_distributed/server/channel.hpp | 2 +- .../performance_counters/server/base_performance_counter.hpp | 2 +- .../server/component_namespace_counters.hpp | 2 +- .../performance_counters/server/locality_namespace_counters.hpp | 2 +- .../performance_counters/server/primary_namespace_counters.hpp | 2 +- .../performance_counters/server/symbol_namespace_counters.hpp | 2 +- libs/full/performance_counters/src/counter_creators.cpp | 2 +- libs/full/performance_counters/src/counters.cpp | 1 + .../src/server/base_performance_counter.cpp | 2 +- .../hpx/runtime_components/distributed_metadata_base.hpp | 2 +- .../hpx/runtime_components/server/console_error_sink.hpp | 2 +- .../include/hpx/runtime_components/server/console_logging.hpp | 2 +- .../runtime_components/src/server/console_error_sink_server.cpp | 2 +- .../runtime_components/src/server/console_logging_server.cpp | 2 +- .../include/hpx/runtime_distributed/server/runtime_support.hpp | 2 +- 38 files changed, 38 insertions(+), 34 deletions(-) diff --git a/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp b/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp index 8b845facc25b..5aacafadf51f 100644 --- a/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp +++ b/components/component_storage/include/hpx/components/component_storage/server/component_storage.hpp @@ -7,8 +7,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/components/component_storage/src/component_module.cpp b/components/component_storage/src/component_module.cpp index 0171a6e44faa..b23c1e33a229 100644 --- a/components/component_storage/src/component_module.cpp +++ b/components/component_storage/src/component_module.cpp @@ -5,6 +5,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include #include #include #include diff --git a/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp b/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp index b311080a38db..ac8af57d32ab 100644 --- a/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp +++ b/components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_component_decl.hpp @@ -17,9 +17,9 @@ /// classes are asynchronous API which return the futures. #include +#include #include #include -#include #include #include #include diff --git a/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp b/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp index eb1508a33728..34b8da5d77dc 100644 --- a/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp +++ b/components/containers/unordered/include/hpx/components/containers/unordered/partition_unordered_map_component.hpp @@ -18,10 +18,10 @@ #include #include +#include #include #include #include -#include #include #include #include diff --git a/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp b/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp index 3e3210fc186c..d194462b08c4 100644 --- a/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp +++ b/components/iostreams/include/hpx/components/iostreams/server/output_stream.hpp @@ -8,8 +8,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/components/iostreams/src/component_module.cpp b/components/iostreams/src/component_module.cpp index 0f2a54c67a5e..554be20f5a1a 100644 --- a/components/iostreams/src/component_module.cpp +++ b/components/iostreams/src/component_module.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include #include diff --git a/components/process/include/hpx/components/process/server/child.hpp b/components/process/include/hpx/components/process/server/child.hpp index 616b0e946ec3..a23ca7190456 100644 --- a/components/process/include/hpx/components/process/server/child.hpp +++ b/components/process/include/hpx/components/process/server/child.hpp @@ -7,8 +7,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp index 50c754e2745b..7de0a9191c4c 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/component_namespace.hpp @@ -10,8 +10,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp index da67d88ec48a..fb628d392edb 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/locality_namespace.hpp @@ -11,8 +11,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp index 8e1a0a778bd8..3309400a8aa8 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/primary_namespace.hpp @@ -14,8 +14,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp b/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp index 81f74853498f..3df45dab62f8 100644 --- a/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp +++ b/libs/full/agas_base/include/hpx/agas_base/server/symbol_namespace.hpp @@ -11,8 +11,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/agas_base/src/component_namespace.cpp b/libs/full/agas_base/src/component_namespace.cpp index 584577131199..1a9f6edfe1c1 100644 --- a/libs/full/agas_base/src/component_namespace.cpp +++ b/libs/full/agas_base/src/component_namespace.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp index 3143ded17a21..aba40b466f6f 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco.hpp @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp index d0fad3b94ef8..2140f834f767 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/base_lco_with_value.hpp @@ -12,8 +12,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp b/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp index 2a75ae6a1bc9..634a0bff10f5 100644 --- a/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp +++ b/libs/full/async_distributed/include/hpx/async_distributed/put_parcel.hpp @@ -20,8 +20,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/async_distributed/src/base_lco.cpp b/libs/full/async_distributed/src/base_lco.cpp index f5d34163f462..ad533369c2b0 100644 --- a/libs/full/async_distributed/src/base_lco.cpp +++ b/libs/full/async_distributed/src/base_lco.cpp @@ -6,8 +6,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include #include +#include #include #include #include diff --git a/libs/full/async_distributed/src/continuation.cpp b/libs/full/async_distributed/src/continuation.cpp index 145cfe4a92ec..5aff1e69873c 100644 --- a/libs/full/async_distributed/src/continuation.cpp +++ b/libs/full/async_distributed/src/continuation.cpp @@ -7,9 +7,9 @@ #include #include +#include #include #include -#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp b/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp index 41b7338b2cc8..cef01cae9c64 100644 --- a/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp +++ b/libs/full/collectives/include/hpx/collectives/broadcast_direct.hpp @@ -132,8 +132,8 @@ namespace hpx { namespace lcos { #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/detail/latch.hpp b/libs/full/collectives/include/hpx/collectives/detail/latch.hpp index 56d110455035..74e46f075bf6 100644 --- a/libs/full/collectives/include/hpx/collectives/detail/latch.hpp +++ b/libs/full/collectives/include/hpx/collectives/detail/latch.hpp @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/fold.hpp b/libs/full/collectives/include/hpx/collectives/fold.hpp index b7a5922733ac..1fed2018d227 100644 --- a/libs/full/collectives/include/hpx/collectives/fold.hpp +++ b/libs/full/collectives/include/hpx/collectives/fold.hpp @@ -160,8 +160,8 @@ namespace hpx { namespace lcos { #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp b/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp index f57e3fd17e60..40e47763182d 100644 --- a/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp +++ b/libs/full/collectives/include/hpx/collectives/reduce_direct.hpp @@ -76,8 +76,8 @@ namespace hpx { namespace lcos { #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/collectives/src/latch.cpp b/libs/full/collectives/src/latch.cpp index 44e7ad670434..a0392905d52c 100644 --- a/libs/full/collectives/src/latch.cpp +++ b/libs/full/collectives/src/latch.cpp @@ -6,10 +6,10 @@ #include #include +#include #include #include #include -#include #include #include #include diff --git a/libs/full/include/include/hpx/include/actions.hpp b/libs/full/include/include/hpx/include/actions.hpp index 715466a8c970..020bb61f9963 100644 --- a/libs/full/include/include/hpx/include/actions.hpp +++ b/libs/full/include/include/hpx/include/actions.hpp @@ -11,6 +11,6 @@ #include #include #include -#include #include +#include #include diff --git a/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp b/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp index a6fc4bb0bb7f..ac9fa675dbe5 100644 --- a/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp +++ b/libs/full/lcos_distributed/include/hpx/lcos_distributed/server/channel.hpp @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp index a664033ad3ce..1fd999492aef 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/base_performance_counter.hpp @@ -8,8 +8,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp index d508704d4f8e..2d899d44c71e 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/component_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp index cdafaf43e985..dbc40879ef0c 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/locality_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp index ae126c40973f..66da913bdaa8 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/primary_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp b/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp index 50707eaa5e27..d0572a7b9533 100644 --- a/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp +++ b/libs/full/performance_counters/include/hpx/performance_counters/server/symbol_namespace_counters.hpp @@ -9,8 +9,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/performance_counters/src/counter_creators.cpp b/libs/full/performance_counters/src/counter_creators.cpp index 72c9ec827db9..a2760a644cf4 100644 --- a/libs/full/performance_counters/src/counter_creators.cpp +++ b/libs/full/performance_counters/src/counter_creators.cpp @@ -8,8 +8,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/performance_counters/src/counters.cpp b/libs/full/performance_counters/src/counters.cpp index 9dcdeddbe6c1..a515a135e624 100644 --- a/libs/full/performance_counters/src/counters.cpp +++ b/libs/full/performance_counters/src/counters.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include diff --git a/libs/full/performance_counters/src/server/base_performance_counter.cpp b/libs/full/performance_counters/src/server/base_performance_counter.cpp index 61d2acc6ae29..6aff4f585dfe 100644 --- a/libs/full/performance_counters/src/server/base_performance_counter.cpp +++ b/libs/full/performance_counters/src/server/base_performance_counter.cpp @@ -6,8 +6,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp b/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp index ca7ec94aa58a..ff68d17b759c 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/distributed_metadata_base.hpp @@ -9,8 +9,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp b/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp index 40cac7b915eb..7f0b4e02e437 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/server/console_error_sink.hpp @@ -7,8 +7,8 @@ #pragma once #include -#include #include +#include #include #include diff --git a/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp b/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp index 0057950e1d4a..be4026da38f8 100644 --- a/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp +++ b/libs/full/runtime_components/include/hpx/runtime_components/server/console_logging.hpp @@ -8,8 +8,8 @@ #pragma once #include -#include #include +#include #include #include #include diff --git a/libs/full/runtime_components/src/server/console_error_sink_server.cpp b/libs/full/runtime_components/src/server/console_error_sink_server.cpp index 2c561b5d9055..07b6ca0d8128 100644 --- a/libs/full/runtime_components/src/server/console_error_sink_server.cpp +++ b/libs/full/runtime_components/src/server/console_error_sink_server.cpp @@ -8,8 +8,8 @@ #include #include #include -#include #include +#include #include #include #include diff --git a/libs/full/runtime_components/src/server/console_logging_server.cpp b/libs/full/runtime_components/src/server/console_logging_server.cpp index 97ade062b16f..ccca4cbeca6b 100644 --- a/libs/full/runtime_components/src/server/console_logging_server.cpp +++ b/libs/full/runtime_components/src/server/console_logging_server.cpp @@ -7,8 +7,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp b/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp index f4bc1826354e..4e157f3c626b 100644 --- a/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp +++ b/libs/full/runtime_distributed/include/hpx/runtime_distributed/server/runtime_support.hpp @@ -11,8 +11,8 @@ #include #include #include -#include #include +#include #include #include #include