From: Arnaud Giersch Date: Thu, 27 Jul 2017 07:26:54 +0000 (+0200) Subject: Use C++ style includes when available. X-Git-Tag: v3_17~316^2~4^2~9 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ebcb91551aa801d2353d854ffe9c1d1bf72d7db9 Use C++ style includes when available. --- diff --git a/examples/simdag/test/sd_test.cpp b/examples/simdag/test/sd_test.cpp index 5ba0bc0dd0..3b3de64480 100644 --- a/examples/simdag/test/sd_test.cpp +++ b/examples/simdag/test/sd_test.cpp @@ -1,16 +1,16 @@ -/* Copyright (c) 2006-2015. The SimGrid Team. +/* Copyright (c) 2006-2017. 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 "simgrid/simdag.h" #include "simgrid/s4u.hpp" +#include "simgrid/simdag.h" #include "xbt/ex.h" -#include #include "xbt/log.h" -#include +#include #include +#include XBT_LOG_NEW_DEFAULT_CATEGORY(sd_test, "Logging specific to this SimDag example"); diff --git a/include/simgrid/jedule/jedule.hpp b/include/simgrid/jedule/jedule.hpp index 43387f2ebb..ebb956ed2e 100644 --- a/include/simgrid/jedule/jedule.hpp +++ b/include/simgrid/jedule/jedule.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2012, 2014-2016. The SimGrid Team. +/* Copyright (c) 2010-2012, 2014-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,8 +6,8 @@ #ifndef JEDULE_HPP_ #define JEDULE_HPP_ -#include #include "simgrid_config.h" +#include #include "jedule_events.hpp" #include "jedule_platform.hpp" diff --git a/include/xbt/string.hpp b/include/xbt/string.hpp index cafddcb5b8..912fe8dd6a 100644 --- a/include/xbt/string.hpp +++ b/include/xbt/string.hpp @@ -8,15 +8,14 @@ #include -#include #include -#include +#include +#include #if SIMGRID_HAVE_MC #include #include -#include #include #include diff --git a/src/bindings/java/jmsg.cpp b/src/bindings/java/jmsg.cpp index 4f766198a6..11342f25b4 100644 --- a/src/bindings/java/jmsg.cpp +++ b/src/bindings/java/jmsg.cpp @@ -5,7 +5,7 @@ /* 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 "simgrid/msg.h" #include "simgrid/plugins/energy.h" diff --git a/src/bindings/java/jxbt_utilities.cpp b/src/bindings/java/jxbt_utilities.cpp index 128f0770a5..a5e6ed1ab7 100644 --- a/src/bindings/java/jxbt_utilities.cpp +++ b/src/bindings/java/jxbt_utilities.cpp @@ -8,7 +8,7 @@ #include "xbt/sysdep.h" #include "jxbt_utilities.h" -#include /* abort */ +#include /* abort */ SG_BEGIN_DECL() diff --git a/src/bindings/lua/lua_platf.cpp b/src/bindings/lua/lua_platf.cpp index 6f9f856f35..c0b812cad9 100644 --- a/src/bindings/lua/lua_platf.cpp +++ b/src/bindings/lua/lua_platf.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2012-2015. The SimGrid Team. +/* Copyright (c) 2010, 2012-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -10,8 +10,8 @@ #include "src/kernel/routing/NetPoint.hpp" #include "src/surf/network_interface.hpp" #include "src/surf/xml/platf_private.hpp" -#include -#include +#include +#include extern "C" { #include diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 087b175ef1..e45c097e71 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -30,8 +30,8 @@ #include "xbt/swag.h" #include "xbt/xbt_os_time.h" -#include #include "src/simix/ActorImpl.hpp" +#include #include diff --git a/src/kernel/routing/DijkstraZone.cpp b/src/kernel/routing/DijkstraZone.cpp index 0efd92e0e4..b5c53135c5 100644 --- a/src/kernel/routing/DijkstraZone.cpp +++ b/src/kernel/routing/DijkstraZone.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2017. 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. */ @@ -7,7 +7,7 @@ #include "src/kernel/routing/NetPoint.hpp" #include "src/surf/network_interface.hpp" -#include +#include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_dijkstra, surf, "Routing part of surf -- dijkstra routing logic"); diff --git a/src/kernel/routing/FloydZone.cpp b/src/kernel/routing/FloydZone.cpp index 457b0e1ad5..863c876583 100644 --- a/src/kernel/routing/FloydZone.cpp +++ b/src/kernel/routing/FloydZone.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2017. 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. */ @@ -8,7 +8,7 @@ #include "src/surf/network_interface.hpp" #include "xbt/log.h" -#include +#include #include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_route_floyd, surf, "Routing part of surf"); diff --git a/src/kernel/routing/NetPoint.hpp b/src/kernel/routing/NetPoint.hpp index 285ef6ac53..fd54a2f75e 100644 --- a/src/kernel/routing/NetPoint.hpp +++ b/src/kernel/routing/NetPoint.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2017. 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. */ @@ -11,10 +11,7 @@ #include #include "src/kernel/routing/NetZoneImpl.hpp" -/* -#include -#include -*/ + namespace simgrid { namespace kernel { namespace routing { diff --git a/src/mc/PageStore.cpp b/src/mc/PageStore.cpp index 29d624c055..20d3e5e190 100644 --- a/src/mc/PageStore.cpp +++ b/src/mc/PageStore.cpp @@ -1,11 +1,11 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2017. 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 // memcpy, memcmp #include -#include // memcpy, memcmp #include #ifdef __FreeBSD__ diff --git a/src/mc/Session.cpp b/src/mc/Session.cpp index d38c528217..810351b139 100644 --- a/src/mc/Session.cpp +++ b/src/mc/Session.cpp @@ -1,11 +1,11 @@ -/* Copyright (c) 2015-2016. The SimGrid Team. +/* Copyright (c) 2015-2017. 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 #include -#include #include diff --git a/src/mc/mc_checkpoint.cpp b/src/mc/mc_checkpoint.cpp index 9f7775c812..daf52a4856 100644 --- a/src/mc/mc_checkpoint.cpp +++ b/src/mc/mc_checkpoint.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2015. The SimGrid Team. +/* Copyright (c) 2008-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,10 +6,10 @@ #include +#include +#include #include -#include #include -#include #ifndef WIN32 #include diff --git a/src/mc/mc_comm_pattern.cpp b/src/mc/mc_comm_pattern.cpp index 3f3d1bdaa1..cb7029cfb8 100644 --- a/src/mc/mc_comm_pattern.cpp +++ b/src/mc/mc_comm_pattern.cpp @@ -3,7 +3,7 @@ /* 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 "xbt/dynar.h" #include "xbt/sysdep.h" diff --git a/src/mc/mc_snapshot.cpp b/src/mc/mc_snapshot.cpp index e365f98543..11dba265f6 100644 --- a/src/mc/mc_snapshot.cpp +++ b/src/mc/mc_snapshot.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015. The SimGrid Team. +/* Copyright (c) 2014-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -196,8 +196,8 @@ const void* Snapshot::read_bytes(void* buffer, std::size_t size, #ifdef SIMGRID_TEST -#include -#include +#include +#include #include diff --git a/src/mc/mc_state.cpp b/src/mc/mc_state.cpp index 1a36d31dd4..0bce019d43 100644 --- a/src/mc/mc_state.cpp +++ b/src/mc/mc_state.cpp @@ -3,7 +3,7 @@ /* 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 diff --git a/src/mc/mc_unw.cpp b/src/mc/mc_unw.cpp index 6b2d206517..ebe8c8ec89 100644 --- a/src/mc/mc_unw.cpp +++ b/src/mc/mc_unw.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,7 +11,7 @@ // We need this for the register indices: // #define _GNU_SOURCE -#include +#include // On x86_64, libunwind unw_context_t has the same layout as ucontext_t: #include diff --git a/src/mc/remote/Channel.cpp b/src/mc/remote/Channel.cpp index 6c4000dae3..1fee675094 100644 --- a/src/mc/remote/Channel.cpp +++ b/src/mc/remote/Channel.cpp @@ -1,10 +1,10 @@ -/* Copyright (c) 2015-2016. The SimGrid Team. +/* Copyright (c) 2015-2017. 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 +#include #include #include diff --git a/src/mc/remote/RemoteClient.cpp b/src/mc/remote/RemoteClient.cpp index f96e1e5ab9..306421e2d6 100644 --- a/src/mc/remote/RemoteClient.cpp +++ b/src/mc/remote/RemoteClient.cpp @@ -5,10 +5,10 @@ #define _FILE_OFFSET_BITS 64 /* needed for pread_whole to work as expected on 32bits */ -#include -#include -#include -#include +#include +#include +#include +#include #include diff --git a/src/mc/remote/mc_protocol.cpp b/src/mc/remote/mc_protocol.cpp index 74bec4e710..65673779d8 100644 --- a/src/mc/remote/mc_protocol.cpp +++ b/src/mc/remote/mc_protocol.cpp @@ -1,13 +1,13 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2017. 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 #include // std::size_t -#include -#include // perror -#include +#include // perror +#include #include #include diff --git a/src/msg/msg_actions.cpp b/src/msg/msg_actions.cpp index b5d171a0d7..9557caac23 100644 --- a/src/msg/msg_actions.cpp +++ b/src/msg/msg_actions.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2015. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2017. 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. */ @@ -6,7 +6,7 @@ #include "src/msg/msg_private.h" #include "xbt/replay.hpp" -#include +#include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_action, msg, "MSG actions for trace driven simulation"); diff --git a/src/simdag/sd_dotloader.cpp b/src/simdag/sd_dotloader.cpp index 619fcb13f4..7c82c61e3d 100644 --- a/src/simdag/sd_dotloader.cpp +++ b/src/simdag/sd_dotloader.cpp @@ -8,7 +8,7 @@ #include "simgrid/simdag.h" #include "src/internal_config.h" #include "xbt/file.h" -#include +#include #include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_dotparse, sd, "Parsing DOT files"); diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index f0f826872f..124897c2b8 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -6,9 +6,9 @@ #include #include -#include /* Signal handling */ -#include #include "src/internal_config.h" +#include /* Signal handling */ +#include #include @@ -37,7 +37,6 @@ #include "src/mc/mc_private.h" #include "src/mc/remote/Client.hpp" #include "src/mc/remote/mc_protocol.h" -#include #endif #include "src/mc/mc_record.h" diff --git a/src/smpi/colls/alltoall/alltoall-2dmesh.cpp b/src/smpi/colls/alltoall/alltoall-2dmesh.cpp index 062d5cbe3c..e75003a81c 100644 --- a/src/smpi/colls/alltoall/alltoall-2dmesh.cpp +++ b/src/smpi/colls/alltoall/alltoall-2dmesh.cpp @@ -5,7 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "../colls_private.h" -#include +#include /***************************************************************************** diff --git a/src/smpi/colls/alltoall/alltoall-3dmesh.cpp b/src/smpi/colls/alltoall/alltoall-3dmesh.cpp index bb8ca3debe..85baad3b65 100644 --- a/src/smpi/colls/alltoall/alltoall-3dmesh.cpp +++ b/src/smpi/colls/alltoall/alltoall-3dmesh.cpp @@ -5,7 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "../colls_private.h" -#include +#include /***************************************************************************** diff --git a/src/smpi/colls/reduce/reduce-rab.cpp b/src/smpi/colls/reduce/reduce-rab.cpp index ac19cd515d..b2c90e06b0 100644 --- a/src/smpi/colls/reduce/reduce-rab.cpp +++ b/src/smpi/colls/reduce/reduce-rab.cpp @@ -10,8 +10,8 @@ */ #include "../colls_private.h" -#include -#include +#include +#include #define REDUCE_NEW_ALWAYS 1 diff --git a/src/smpi/colls/smpi_automatic_selector.cpp b/src/smpi/colls/smpi_automatic_selector.cpp index 017e61e077..3ffffa0278 100644 --- a/src/smpi/colls/smpi_automatic_selector.cpp +++ b/src/smpi/colls/smpi_automatic_selector.cpp @@ -4,7 +4,7 @@ /* 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 diff --git a/src/smpi/internals/instr_smpi.cpp b/src/smpi/internals/instr_smpi.cpp index 52e6e4bb15..ec33a27bc8 100644 --- a/src/smpi/internals/instr_smpi.cpp +++ b/src/smpi/internals/instr_smpi.cpp @@ -6,10 +6,10 @@ #include "private.h" #include "private.hpp" -#include +#include +#include +#include #include -#include -#include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_smpi, instr, "Tracing SMPI"); diff --git a/src/smpi/internals/smpi_bench.cpp b/src/smpi/internals/smpi_bench.cpp index 6342bd93aa..44fdedfcfa 100644 --- a/src/smpi/internals/smpi_bench.cpp +++ b/src/smpi/internals/smpi_bench.cpp @@ -14,7 +14,7 @@ #ifndef WIN32 #include #endif -#include // sqrt +#include #if HAVE_PAPI #include diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 47fa986abe..e864e819a1 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -19,11 +19,11 @@ #include "smpi_info.hpp" #include "smpi_process.hpp" +#include /* DBL_MAX */ #include #include -#include -#include /* DBL_MAX */ #include +#include #if HAVE_SENDFILE #include diff --git a/src/smpi/internals/smpi_memory.cpp b/src/smpi/internals/smpi_memory.cpp index 719b28b63b..a3d9b14433 100644 --- a/src/smpi/internals/smpi_memory.cpp +++ b/src/smpi/internals/smpi_memory.cpp @@ -9,13 +9,13 @@ #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include -#include +#include #ifndef WIN32 #include diff --git a/src/smpi/internals/smpi_shared.cpp b/src/smpi/internals/smpi_shared.cpp index cd4b82093e..0d51fb00d2 100644 --- a/src/smpi/internals/smpi_shared.cpp +++ b/src/smpi/internals/smpi_shared.cpp @@ -40,16 +40,15 @@ #include "private.hpp" #include "xbt/dict.h" #include "xbt/ex.hpp" -#include +#include #include #ifndef WIN32 #include #endif -#include +#include #include -#include -#include +#include #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON diff --git a/src/smpi/mpi/smpi_topo.cpp b/src/smpi/mpi/smpi_topo.cpp index fa3701d3b8..b55b0e313f 100644 --- a/src/smpi/mpi/smpi_topo.cpp +++ b/src/smpi/mpi/smpi_topo.cpp @@ -3,13 +3,13 @@ /* 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 "xbt/sysdep.h" #include "smpi/smpi.h" #include "private.h" -#include -#include #include "smpi_comm.hpp" #include "smpi_topo.hpp" +#include "xbt/sysdep.h" +#include +#include /* static functions */ static int assignnodes(int ndim, int nfactor, int *pfacts,int **pdims); diff --git a/src/surf/fair_bottleneck.cpp b/src/surf/fair_bottleneck.cpp index 2f44bdb53e..2a0fcb7c8f 100644 --- a/src/surf/fair_bottleneck.cpp +++ b/src/surf/fair_bottleneck.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2011, 2013-2014. The SimGrid Team. +/* Copyright (c) 2007-2011, 2013-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,9 +7,9 @@ #include "maxmin_private.hpp" #include "xbt/log.h" #include "xbt/sysdep.h" -#include -#include -#include +#include +#include +#include XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_maxmin); #define SHOW_EXPR_G(expr) XBT_DEBUG(#expr " = %g",expr); diff --git a/src/surf/lagrange.cpp b/src/surf/lagrange.cpp index dc52269d89..7e70a86b1f 100644 --- a/src/surf/lagrange.cpp +++ b/src/surf/lagrange.cpp @@ -11,9 +11,9 @@ #include "xbt/sysdep.h" #include "maxmin_private.hpp" -#include +#include #ifndef MATH -#include +#include #endif XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_lagrange, surf, "Logging specific to SURF (lagrange)"); diff --git a/src/surf/maxmin.cpp b/src/surf/maxmin.cpp index 0fafd622f9..02c65df32b 100644 --- a/src/surf/maxmin.cpp +++ b/src/surf/maxmin.cpp @@ -9,10 +9,10 @@ #include "xbt/log.h" #include "xbt/mallocator.h" #include "xbt/sysdep.h" +#include +#include #include #include -#include -#include XBT_LOG_NEW_DEFAULT_SUBCATEGORY(surf_maxmin, surf, "Logging specific to SURF (maxmin)"); diff --git a/src/surf/storage_n11.cpp b/src/surf/storage_n11.cpp index 5131db9a76..c05e8a5c33 100644 --- a/src/surf/storage_n11.cpp +++ b/src/surf/storage_n11.cpp @@ -6,7 +6,7 @@ #include "storage_n11.hpp" #include "simgrid/s4u/Engine.hpp" #include "src/kernel/routing/NetPoint.hpp" -#include /*ceil*/ +#include /*ceil*/ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(surf_storage); diff --git a/src/surf/trace_mgr.cpp b/src/surf/trace_mgr.cpp index 7771715793..16eb4f8abf 100644 --- a/src/surf/trace_mgr.cpp +++ b/src/surf/trace_mgr.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2005, 2007, 2009-2014. The SimGrid Team. +/* Copyright (c) 2004-2005, 2007, 2009-2014, 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -16,8 +16,8 @@ #include #include #include +#include #include -#include #include #include diff --git a/src/surf/trace_mgr_test.cpp b/src/surf/trace_mgr_test.cpp index bc2d47cf96..333f1856b0 100644 --- a/src/surf/trace_mgr_test.cpp +++ b/src/surf/trace_mgr_test.cpp @@ -15,7 +15,7 @@ bool init_unit_test(); // boost forget to give this prototype on NetBSD, which d #include "xbt/log.h" #include "xbt/misc.h" -#include +#include namespace utf = boost::unit_test; namespace tmgr = simgrid::trace_mgr; diff --git a/src/xbt/config.cpp b/src/xbt/config.cpp index 9b3fedbf55..af5c6024f3 100644 --- a/src/xbt/config.cpp +++ b/src/xbt/config.cpp @@ -1,9 +1,9 @@ -/* Copyright (c) 2004-2014,2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2017. 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 +#include #include #include diff --git a/src/xbt/cunit.cpp b/src/xbt/cunit.cpp index eac5f1abcb..1bf81768e8 100644 --- a/src/xbt/cunit.cpp +++ b/src/xbt/cunit.cpp @@ -9,7 +9,7 @@ /* At some point we should use https://github.com/google/googletest instead */ #include "src/internal_config.h" -#include +#include #include #include "xbt/sysdep.h" /* bvprintf */ diff --git a/src/xbt/dict.cpp b/src/xbt/dict.cpp index 7436c33f31..6f4682026b 100644 --- a/src/xbt/dict.cpp +++ b/src/xbt/dict.cpp @@ -6,8 +6,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 #include "xbt/dict.h" #include "xbt/ex.h" @@ -554,11 +554,11 @@ void xbt_dict_postexit() } #ifdef SIMGRID_TEST -#include +#include "src/internal_config.h" #include "xbt.h" #include "xbt/ex.h" +#include #include -#include "src/internal_config.h" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(xbt_dict); diff --git a/src/xbt/ex.cpp b/src/xbt/ex.cpp index 9115b407e0..50a97f1666 100644 --- a/src/xbt/ex.cpp +++ b/src/xbt/ex.cpp @@ -41,8 +41,8 @@ /* The extensions made for the SimGrid project can either be distributed */ /* under the same license, or under the LGPL v2.1 */ -#include -#include +#include +#include #include #include "src/internal_config.h" /* execinfo when available */ @@ -113,8 +113,8 @@ const char *xbt_ex_catname(xbt_errcat_t cat) } #ifdef SIMGRID_TEST -#include #include "xbt/ex.h" +#include #include XBT_TEST_SUITE("xbt_ex", "Exception Handling"); diff --git a/src/xbt/parmap.cpp b/src/xbt/parmap.cpp index df47a7adee..935149f0ab 100644 --- a/src/xbt/parmap.cpp +++ b/src/xbt/parmap.cpp @@ -16,8 +16,8 @@ #endif #if HAVE_FUTEX_H +#include #include -#include #endif #include "xbt/parmap.h" diff --git a/src/xbt/xbt_main.cpp b/src/xbt/xbt_main.cpp index f4ba9ab2c8..ffd97cd274 100644 --- a/src/xbt/xbt_main.cpp +++ b/src/xbt/xbt_main.cpp @@ -7,14 +7,14 @@ #define XBT_LOG_LOCALLY_DEFINE_XBT_CHANNEL /* MSVC don't want it to be declared extern in headers and local here */ -#include -#include "xbt/misc.h" #include "simgrid_config.h" -#include "xbt/sysdep.h" +#include "xbt/config.h" +#include "xbt/dynar.h" #include "xbt/log.h" #include "xbt/log.hpp" -#include "xbt/dynar.h" -#include "xbt/config.h" +#include "xbt/misc.h" +#include "xbt/sysdep.h" +#include #include "xbt/module.h" /* this module */ @@ -23,9 +23,9 @@ #include "simgrid/sg_config.h" #include "src/internal_config.h" -#include +#include #ifdef _WIN32 -#include /* To silence MSVC on abort() */ +#include /* To silence MSVC on abort() */ #endif #if HAVE_UNISTD_H # include diff --git a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp index afc7d12c9a..5cd9b4620f 100644 --- a/teshsuite/mc/dwarf-expression/dwarf-expression.cpp +++ b/teshsuite/mc/dwarf-expression/dwarf-expression.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015. The SimGrid Team. +/* Copyright (c) 2014-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -8,9 +8,9 @@ #undef NDEBUG #endif -#include -#include -#include +#include +#include +#include #include "src/mc/mc_private.h" diff --git a/teshsuite/mc/dwarf/dwarf.cpp b/teshsuite/mc/dwarf/dwarf.cpp index 20e0645030..886d410750 100644 --- a/teshsuite/mc/dwarf/dwarf.cpp +++ b/teshsuite/mc/dwarf/dwarf.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015. The SimGrid Team. +/* Copyright (c) 2014-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -8,8 +8,8 @@ #undef NDEBUG #endif -#include -#include +#include +#include #include diff --git a/teshsuite/s4u/comm-waitany/comm-waitany.cpp b/teshsuite/s4u/comm-waitany/comm-waitany.cpp index 6b9658317b..ce34e61671 100644 --- a/teshsuite/s4u/comm-waitany/comm-waitany.cpp +++ b/teshsuite/s4u/comm-waitany/comm-waitany.cpp @@ -3,9 +3,9 @@ /* 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 #include #define NUM_COMMS 1 diff --git a/teshsuite/simdag/is-router/is-router.cpp b/teshsuite/simdag/is-router/is-router.cpp index 0b09725c98..a45915ed96 100644 --- a/teshsuite/simdag/is-router/is-router.cpp +++ b/teshsuite/simdag/is-router/is-router.cpp @@ -8,7 +8,7 @@ #include "simgrid/simdag.h" #include "src/kernel/routing/NetPoint.hpp" #include -#include +#include int main(int argc, char **argv) { diff --git a/teshsuite/surf/lmm_usage/lmm_usage.cpp b/teshsuite/surf/lmm_usage/lmm_usage.cpp index ce8eac5e71..c35f43779c 100644 --- a/teshsuite/surf/lmm_usage/lmm_usage.cpp +++ b/teshsuite/surf/lmm_usage/lmm_usage.cpp @@ -1,6 +1,6 @@ /* A few tests for the maxmin library */ -/* Copyright (c) 2007-2015. The SimGrid Team. +/* Copyright (c) 2007-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -12,7 +12,7 @@ #include "xbt/log.h" #include "xbt/module.h" #include "xbt/sysdep.h" -#include +#include XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, "Messages specific for surf example"); diff --git a/teshsuite/surf/maxmin_bench/maxmin_bench.cpp b/teshsuite/surf/maxmin_bench/maxmin_bench.cpp index aed2abb2a9..6d115ab899 100644 --- a/teshsuite/surf/maxmin_bench/maxmin_bench.cpp +++ b/teshsuite/surf/maxmin_bench/maxmin_bench.cpp @@ -1,6 +1,6 @@ /* A crash few tests for the maxmin library */ -/* Copyright (c) 2004-2015. The SimGrid Team. +/* Copyright (c) 2004-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -14,9 +14,9 @@ #define MYRANDMAX 1000 -#include -#include -#include +#include +#include +#include double date; int64_t seedx = 0; diff --git a/teshsuite/xbt/mmalloc/mmalloc_test.cpp b/teshsuite/xbt/mmalloc/mmalloc_test.cpp index c480421a92..569c756796 100644 --- a/teshsuite/xbt/mmalloc/mmalloc_test.cpp +++ b/teshsuite/xbt/mmalloc/mmalloc_test.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2014. The SimGrid Team. +/* Copyright (c) 2012-2014, 2016-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -6,12 +6,12 @@ #include "xbt/mmalloc.h" #include "xbt.h" -#include -#include +#include +#include +#include +#include #include #include -#include -#include #include #include