From: Martin Quinson Date: Sun, 24 May 2020 22:08:32 +0000 (+0200) Subject: lgtm: Add some missing header guards X-Git-Tag: v3.26~587 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/eff932c1509031e225b81cf6a8902c7d0050e9e7 lgtm: Add some missing header guards --- diff --git a/include/xbt/log.hpp b/include/xbt/log.hpp index c28f642c2d..4553724d6b 100644 --- a/include/xbt/log.hpp +++ b/include/xbt/log.hpp @@ -3,6 +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. */ +#ifndef SIMGRID_XBT_LOG_HPP +#define SIMGRID_XBT_LOG_HPP + #include #include @@ -22,3 +25,5 @@ XBT_PUBLIC void install_exception_handler(); } // namespace xbt } // namespace simgrid + +#endif \ No newline at end of file diff --git a/src/kernel/EngineImpl.hpp b/src/kernel/EngineImpl.hpp index f619bf6931..d730edebbd 100644 --- a/src/kernel/EngineImpl.hpp +++ b/src/kernel/EngineImpl.hpp @@ -3,10 +3,14 @@ /* 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 SIMGRID_KERNEL_ENGINEIMPL_HPP +#define SIMGRID_KERNEL_ENGINEIMPL_HPP + #include #include #include + +#include #include #include @@ -48,3 +52,5 @@ public: } // namespace kernel } // namespace simgrid + +#endif \ No newline at end of file diff --git a/src/surf/cpu_cas01.hpp b/src/surf/cpu_cas01.hpp index f01f62bc64..2950172ea6 100644 --- a/src/surf/cpu_cas01.hpp +++ b/src/surf/cpu_cas01.hpp @@ -3,6 +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. */ +#ifndef SIMGRID_SURF_CPUCAS01_HPP +#define SIMGRID_SURF_CPUCAS01_HPP + #include "cpu_interface.hpp" #include "xbt/base.h" @@ -75,3 +78,5 @@ private: } // namespace resource } // namespace kernel } // namespace simgrid + +#endif \ No newline at end of file diff --git a/src/surf/network_smpi.hpp b/src/surf/network_smpi.hpp index 391509789c..56d4d60ddf 100644 --- a/src/surf/network_smpi.hpp +++ b/src/surf/network_smpi.hpp @@ -4,6 +4,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. */ +#ifndef SIMGRID_SURF_NETWORK_SMPI_HPP +#define SIMGRID_SURF_NETWORK_SMPI_HPP + #include #include "network_cm02.hpp" @@ -24,3 +27,5 @@ public: } // namespace resource } // namespace kernel } + +#endif