Skip to content

Commit

Permalink
include modules.h only when necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Dec 21, 2024
1 parent fe01893 commit 8c4527d
Show file tree
Hide file tree
Showing 23 changed files with 22 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <sofa/helper/system/PluginManager.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/Modules.h>

namespace sofa::component::collision::detection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <sofa/helper/system/PluginManager.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/Modules.h>

namespace sofa::component::collision::response
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <sofa/helper/system/PluginManager.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/Modules.h>

namespace sofa::component::collision
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::constraint::lagrangian
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::constraint
{
Expand Down
1 change: 1 addition & 0 deletions Sofa/Component/Engine/src/sofa/component/engine/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::engine
{
Expand Down
1 change: 1 addition & 0 deletions Sofa/Component/IO/src/sofa/component/io/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::io
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::linearsolver
{
Expand Down
1 change: 1 addition & 0 deletions Sofa/Component/Mapping/src/sofa/component/mapping/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::mapping
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::odesolver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::solidmechanics::fem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::solidmechanics
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::topology::container
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <sofa/core/topology/Topology.h>
#include <sofa/simpleapi/SimpleApi.h>
#include <sofa/simulation/Node.h>
#include <sofa/Modules.h>

class fake_TopologyScene
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <sofa/core/ObjectFactory.h>
#include <sofa/helper/system/PluginManager.h>
#include <sofa/Modules.h>

namespace sofa::component::topology
{
Expand Down
1 change: 1 addition & 0 deletions Sofa/Component/src/sofa/component/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <sofa/component/visual/init.h>

#include <sofa/core/ObjectFactory.h>
#include <sofa/Modules.h>

namespace sofa::component
{
Expand Down
1 change: 1 addition & 0 deletions Sofa/Component/test/Modules_test.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
* Contact information: [email protected] *
******************************************************************************/
#include <sofa/config.h>
#include <sofa/Modules.h>

#cmakedefine ALL_SOFA_MODULES @ALL_SOFA_MODULES@
1 change: 0 additions & 1 deletion Sofa/framework/Config/src/sofa/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <sofa/config/sharedlibrary_defines.h>
#include <sofa/config/build_option_dump_visitor.h>
#include <sofa/config/build_option_bbox.h>
#include <sofa/Modules.h>

#include <cstddef> // For nullptr
#include <limits> // std::numeric_limits<>
Expand Down
1 change: 1 addition & 0 deletions Sofa/framework/Core/test/ObjectFactoryJson_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <sofa/core/ObjectFactory.h>
#include <sofa/core/ObjectFactoryJson.h>
#include <sofa/simpleapi/SimpleApi.h>
#include <sofa/Modules.h>


namespace sofa
Expand Down
2 changes: 1 addition & 1 deletion Sofa/framework/Helper/src/sofa/helper/ComponentChange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* Contact information: [email protected] *
******************************************************************************/
#include <sofa/helper/ComponentChange.h>

#include <sofa/Modules.h>

namespace sofa::helper::lifecycle
{
Expand Down
1 change: 1 addition & 0 deletions Sofa/framework/Testing/src/sofa/testing/BaseTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#pragma once

#include <sofa/testing/config.h>
#include <sofa/Modules.h>

#include <gtest/gtest.h>
#include <sofa/testing/TestMessageHandler.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <MultiThreading/initMultiThreading.h>
#include <MultiThreading/ParallelImplementationsRegistry.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/Modules.h>

#include <sofa/simpleapi/SimpleApi.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
******************************************************************************/
#include "SceneCreator.h"
#include <SceneCreator/config.h>
#include <sofa/Modules.h>

#include <sofa/simulation/Simulation.h>
#include <sofa/simulation/graph/DAGSimulation.h>
Expand Down

0 comments on commit 8c4527d

Please sign in to comment.