From: Martin Quinson Date: Fri, 4 Nov 2022 23:23:35 +0000 (+0100) Subject: Reduce the amount of header files loading xbt/string.hpp X-Git-Tag: v3.34~706 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1e9ffea6fdfe24e3268eebcda6fa00d34d6a652b Reduce the amount of header files loading xbt/string.hpp Prefer to load this file from the source files (as usual) to reduce the amount of files to be rebuilt when this file changes. --- diff --git a/include/simgrid/s4u/Actor.hpp b/include/simgrid/s4u/Actor.hpp index 199ac8087f..bcfad9331d 100644 --- a/include/simgrid/s4u/Actor.hpp +++ b/include/simgrid/s4u/Actor.hpp @@ -11,7 +11,6 @@ #include #include #include -#include #include #include diff --git a/include/simgrid/s4u/Host.hpp b/include/simgrid/s4u/Host.hpp index bae7f7396d..c96f51bb31 100644 --- a/include/simgrid/s4u/Host.hpp +++ b/include/simgrid/s4u/Host.hpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include diff --git a/src/kernel/activity/BarrierImpl.hpp b/src/kernel/activity/BarrierImpl.hpp index 7d72f6b6f7..ed6957616d 100644 --- a/src/kernel/activity/BarrierImpl.hpp +++ b/src/kernel/activity/BarrierImpl.hpp @@ -10,6 +10,7 @@ #include "src/kernel/activity/ActivityImpl.hpp" #include "src/kernel/actor/ActorImpl.hpp" #include "src/kernel/actor/SynchroObserver.hpp" +#include "xbt/string.hpp" namespace simgrid::kernel::activity { /** Barrier Acquisition: the act / process of acquiring the barrier. diff --git a/src/kernel/resource/WifiLinkImpl.hpp b/src/kernel/resource/WifiLinkImpl.hpp index 811734d61f..3036606243 100644 --- a/src/kernel/resource/WifiLinkImpl.hpp +++ b/src/kernel/resource/WifiLinkImpl.hpp @@ -6,10 +6,8 @@ #ifndef SURF_NETWORK_WIFI_HPP_ #define SURF_NETWORK_WIFI_HPP_ -#include - #include "src/surf/network_cm02.hpp" -#include "xbt/string.hpp" +#include "xbt/base.h" /*********** * Classes * diff --git a/src/mc/explo/CommunicationDeterminismChecker.cpp b/src/mc/explo/CommunicationDeterminismChecker.cpp index 031416a2ad..31e1159c74 100644 --- a/src/mc/explo/CommunicationDeterminismChecker.cpp +++ b/src/mc/explo/CommunicationDeterminismChecker.cpp @@ -11,6 +11,7 @@ #include "src/mc/mc_private.hpp" #include "src/mc/transition/TransitionAny.hpp" #include "src/mc/transition/TransitionComm.hpp" +#include "xbt/string.hpp" #include diff --git a/src/mc/explo/DFSExplorer.cpp b/src/mc/explo/DFSExplorer.cpp index 3af39bc674..56c734a00b 100644 --- a/src/mc/explo/DFSExplorer.cpp +++ b/src/mc/explo/DFSExplorer.cpp @@ -13,6 +13,7 @@ #include "src/xbt/mmalloc/mmprivate.h" #include "xbt/log.h" +#include "xbt/string.hpp" #include "xbt/sysdep.h" #include diff --git a/src/mc/transition/TransitionActorJoin.cpp b/src/mc/transition/TransitionActorJoin.cpp index 2f4b017c91..cc1bcd6534 100644 --- a/src/mc/transition/TransitionActorJoin.cpp +++ b/src/mc/transition/TransitionActorJoin.cpp @@ -4,8 +4,9 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/mc/transition/TransitionActorJoin.hpp" +#include "simgrid/config.h" #include "xbt/asserts.h" -#include +#include "xbt/string.hpp" #if SIMGRID_HAVE_MC #include "src/mc/ModelChecker.hpp" #include "src/mc/api/RemoteApp.hpp" diff --git a/src/mc/transition/TransitionAny.cpp b/src/mc/transition/TransitionAny.cpp index 9de469b684..0be0a04535 100644 --- a/src/mc/transition/TransitionAny.cpp +++ b/src/mc/transition/TransitionAny.cpp @@ -4,8 +4,9 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/mc/transition/TransitionAny.hpp" +#include "simgrid/config.h" #include "xbt/asserts.h" -#include +#include "xbt/string.hpp" #if SIMGRID_HAVE_MC #include "src/mc/ModelChecker.hpp" #include "src/mc/api/RemoteApp.hpp" diff --git a/src/mc/transition/TransitionComm.cpp b/src/mc/transition/TransitionComm.cpp index a25b10aa68..9a332e21fa 100644 --- a/src/mc/transition/TransitionComm.cpp +++ b/src/mc/transition/TransitionComm.cpp @@ -4,8 +4,9 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/mc/transition/TransitionComm.hpp" +#include "simgrid/config.h" #include "xbt/asserts.h" -#include +#include "xbt/string.hpp" #if SIMGRID_HAVE_MC #include "src/mc/ModelChecker.hpp" #include "src/mc/api/RemoteApp.hpp" diff --git a/src/smpi/colls/allgather/allgather-SMP-NTS.cpp b/src/smpi/colls/allgather/allgather-SMP-NTS.cpp index 2656955e5d..b99b08b217 100644 --- a/src/smpi/colls/allgather/allgather-SMP-NTS.cpp +++ b/src/smpi/colls/allgather/allgather-SMP-NTS.cpp @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "../colls_private.hpp" +#include "xbt/string.hpp" namespace simgrid::smpi { diff --git a/src/smpi/colls/allgather/allgather-loosely-lr.cpp b/src/smpi/colls/allgather/allgather-loosely-lr.cpp index 67debf513d..5281cc1eda 100644 --- a/src/smpi/colls/allgather/allgather-loosely-lr.cpp +++ b/src/smpi/colls/allgather/allgather-loosely-lr.cpp @@ -1,10 +1,10 @@ -/* Copyright (c) 2013-2022. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "../colls_private.hpp" +#include "xbt/string.hpp" namespace simgrid::smpi { diff --git a/src/smpi/colls/allgather/allgather-smp-simple.cpp b/src/smpi/colls/allgather/allgather-smp-simple.cpp index e69e2e849a..cf4abb985b 100644 --- a/src/smpi/colls/allgather/allgather-smp-simple.cpp +++ b/src/smpi/colls/allgather/allgather-smp-simple.cpp @@ -1,10 +1,10 @@ -/* Copyright (c) 2013-2022. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2013-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "../colls_private.hpp" +#include "xbt/string.hpp" namespace simgrid::smpi { diff --git a/src/sthread/sthread_impl.cpp b/src/sthread/sthread_impl.cpp index efcdcdda83..5ec2a0435a 100644 --- a/src/sthread/sthread_impl.cpp +++ b/src/sthread/sthread_impl.cpp @@ -1,6 +1,7 @@ /* SimGrid's pthread interposer. Actual implementation of the symbols (see the comment in sthread.h) */ #include "smpi/smpi.h" +#include "xbt/string.hpp" #include #include #include diff --git a/src/surf/network_cm02.hpp b/src/surf/network_cm02.hpp index 6025e1384f..5ba4fa553e 100644 --- a/src/surf/network_cm02.hpp +++ b/src/surf/network_cm02.hpp @@ -6,12 +6,9 @@ #ifndef SURF_NETWORK_CM02_HPP_ #define SURF_NETWORK_CM02_HPP_ -#include - #include "src/kernel/resource/NetworkModel.hpp" #include "src/kernel/resource/StandardLinkImpl.hpp" -#include "xbt/graph.h" -#include "xbt/string.hpp" +#include "xbt/base.h" /*********** * Classes *