From: Martin Quinson Date: Sat, 25 May 2019 21:28:05 +0000 (+0200) Subject: mc: kill some useless includes X-Git-Tag: v3.22.4~62 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a75c48b9362dfc8b1cfcc329885943d85e42464e mc: kill some useless includes --- diff --git a/src/mc/ModelChecker.cpp b/src/mc/ModelChecker.cpp index 8866abb8db..26ec1db632 100644 --- a/src/mc/ModelChecker.cpp +++ b/src/mc/ModelChecker.cpp @@ -3,8 +3,6 @@ /* 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 - #include #include #include @@ -20,15 +18,11 @@ #include "simgrid/sg_config.hpp" -#include "src/mc/ModelChecker.hpp" #include "src/mc/Transition.hpp" #include "src/mc/checker/Checker.hpp" #include "src/mc/mc_exit.hpp" #include "src/mc/mc_private.hpp" -#include "src/mc/mc_record.hpp" #include "src/mc/remote/RemoteClient.hpp" -#include "src/mc/remote/mc_protocol.h" -#include "src/mc/sosp/PageStore.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_ModelChecker, mc, "ModelChecker"); diff --git a/src/mc/sosp/ChunkedData.cpp b/src/mc/sosp/ChunkedData.cpp index 1c1227ef7f..2d5979963a 100644 --- a/src/mc/sosp/ChunkedData.cpp +++ b/src/mc/sosp/ChunkedData.cpp @@ -3,17 +3,8 @@ /* 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 -#include - -#include - -#include "xbt/asserts.h" -#include "xbt/misc.h" - #include "src/mc/AddressSpace.hpp" #include "src/mc/sosp/ChunkedData.hpp" -#include "src/mc/sosp/PageStore.hpp" namespace simgrid { namespace mc { diff --git a/src/mc/sosp/ChunkedData.hpp b/src/mc/sosp/ChunkedData.hpp index da5854efa8..33f71a526c 100644 --- a/src/mc/sosp/ChunkedData.hpp +++ b/src/mc/sosp/ChunkedData.hpp @@ -6,10 +6,6 @@ #ifndef SIMGRID_MC_CHUNKED_DATA_HPP #define SIMGRID_MC_CHUNKED_DATA_HPP -#include -#include - -#include #include #include "src/mc/mc_forward.hpp" diff --git a/src/mc/sosp/PageStore.cpp b/src/mc/sosp/PageStore.cpp index bc102911a3..98c930818a 100644 --- a/src/mc/sosp/PageStore.cpp +++ b/src/mc/sosp/PageStore.cpp @@ -3,24 +3,20 @@ /* 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 // memcpy, memcmp -#include - #include #ifdef __FreeBSD__ #define MAP_POPULATE MAP_PREFAULT_READ #endif -#include "xbt/base.h" #include "xbt/log.h" #include "xbt/sysdep.h" -#include "src/internal_config.h" - #include "src/mc/sosp/PageStore.hpp" - #include "src/mc/mc_mmu.hpp" +#include // memcpy, memcmp +#include + XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_page_snapshot, mc, "Logging specific to mc_page_snapshot"); namespace simgrid { diff --git a/src/mc/sosp/PageStore.hpp b/src/mc/sosp/PageStore.hpp index 08493661e0..c78f57509f 100644 --- a/src/mc/sosp/PageStore.hpp +++ b/src/mc/sosp/PageStore.hpp @@ -6,14 +6,12 @@ #ifndef SIMGRID_MC_PAGESTORE_HPP #define SIMGRID_MC_PAGESTORE_HPP -#include -#include +#include "src/mc/mc_forward.hpp" +#include "src/mc/mc_mmu.hpp" #include #include - -#include "src/mc/mc_forward.hpp" -#include "src/mc/mc_mmu.hpp" +#include #ifndef XBT_ALWAYS_INLINE #define XBT_ALWAYS_INLINE inline __attribute__((always_inline)) diff --git a/src/mc/sosp/RegionSnapshot.cpp b/src/mc/sosp/RegionSnapshot.cpp index 13d6c5b25f..99c65f74de 100644 --- a/src/mc/sosp/RegionSnapshot.cpp +++ b/src/mc/sosp/RegionSnapshot.cpp @@ -10,12 +10,11 @@ #define MAP_POPULATE MAP_PREFAULT_READ #endif -#include "mc/mc.h" +#include "src/mc/ModelChecker.hpp" #include "src/mc/mc_config.hpp" -#include "src/mc/sosp/mc_snapshot.hpp" +#include "src/mc/mc_forward.hpp" #include "src/mc/mc_smx.hpp" -#include "src/mc/sosp/ChunkedData.hpp" #include "src/mc/sosp/RegionSnapshot.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_RegionSnaphot, mc, "Logging specific to region snapshots"); diff --git a/src/mc/sosp/RegionSnapshot.hpp b/src/mc/sosp/RegionSnapshot.hpp index 2284ffa420..8d7fa82779 100644 --- a/src/mc/sosp/RegionSnapshot.hpp +++ b/src/mc/sosp/RegionSnapshot.hpp @@ -6,19 +6,10 @@ #ifndef SIMGRID_MC_REGION_SNAPSHOT_HPP #define SIMGRID_MC_REGION_SNAPSHOT_HPP -#include -#include +#include "src/mc/sosp/ChunkedData.hpp" -#include #include -#include "xbt/base.h" - -#include "src/mc/AddressSpace.hpp" -#include "src/mc/remote/RemotePtr.hpp" -#include "src/mc/sosp/ChunkedData.hpp" -#include "src/mc/sosp/PageStore.hpp" - namespace simgrid { namespace mc { diff --git a/src/mc/sosp/mc_checkpoint.cpp b/src/mc/sosp/mc_checkpoint.cpp index 1b1ff78eed..e653d30fc2 100644 --- a/src/mc/sosp/mc_checkpoint.cpp +++ b/src/mc/sosp/mc_checkpoint.cpp @@ -3,38 +3,18 @@ /* 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 - #ifndef WIN32 #include #endif -#include "src/internal_config.h" -#include "src/mc/mc_private.hpp" -#include "src/smpi/include/private.hpp" #include "xbt/file.hpp" -#include "xbt/mmalloc.h" -#include "xbt/module.h" - -#include "src/xbt/mmalloc/mmprivate.h" - -#include "src/simix/smx_private.hpp" - -#include -#include - -#include "src/mc/mc_private.hpp" -#include #include "src/mc/mc_config.hpp" #include "src/mc/mc_hash.hpp" -#include "src/mc/mc_mmu.hpp" +#include "src/mc/mc_private.hpp" #include "src/mc/mc_smx.hpp" -#include "src/mc/remote/mc_protocol.h" #include "src/mc/sosp/mc_snapshot.hpp" -#include "src/mc/sosp/RegionSnapshot.hpp" - using simgrid::mc::remote; XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_checkpoint, mc, "Logging specific to mc_checkpoint");