Skip to content

Commit

Permalink
fix: clang-format layout structure
Browse files Browse the repository at this point in the history
  • Loading branch information
branylagaffe committed May 24, 2024
1 parent 0a131c9 commit 204d064
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions core/simulator_layout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,26 @@
#include <core/target.hpp>

namespace Flexus {
namespace SharedTypes {}
namespace SharedTypes {
}
} // namespace Flexus

#define FLEXUS_BEGIN_DECLARATION_SECTION() <core/aux_/layout/begin_declaration_section.hpp>
#define FLEXUS_END_DECLARATION_SECTION() <core/aux_/layout/end_declaration_section.hpp>
#define FLEXUS_END_DECLARATION_SECTION() <core/aux_/layout/end_declaration_section.hpp>

#define FLEXUS_BEGIN_GROUP_DEFINITION_SECTION() \
<core/aux_/layout/begin_group_definition_section.hpp>
#define FLEXUS_END_GROUP_DEFINITION_SECTION() <core/aux_/layout/end_group_definition_section.hpp>
#define FLEXUS_BEGIN_COMPONENT_CONFIGURATION_SECTION() \
<core/aux_/layout/begin_comp_configuration_sec.hpp>
#define FLEXUS_END_COMPONENT_CONFIGURATION_SECTION() \
<core/aux_/layout/end_comp_configuration_sec.hpp>
#define FLEXUS_BEGIN_COMPONENT_INSTANTIATION_SECTION() \
<core/aux_/layout/begin_comp_instantiation_sec.hpp>
#define FLEXUS_END_COMPONENT_INSTANTIATION_SECTION() \
<core/aux_/layout/end_comp_instantiation_sec.hpp>
#define FLEXUS_BEGIN_COMPONENT_WIRING_SECTION() <core/aux_/layout/begin_comp_wiring_sec.hpp>
#define FLEXUS_END_COMPONENT_WIRING_SECTION() <core/aux_/layout/end_comp_wiring_sec.hpp>
#define FLEXUS_BEGIN_DRIVE_ORDER_SECTION() <core/aux_/layout/begin_drive_section.hpp>
#define FLEXUS_END_DRIVE_ORDER_SECTION() <core/aux_/layout/end_drive_section.hpp>
#define FLEXUS_BEGIN_GROUP_DEFINITION_SECTION() <core/aux_/layout/begin_group_definition_section.hpp>
#define FLEXUS_END_GROUP_DEFINITION_SECTION() <core/aux_/layout/end_group_definition_section.hpp>
#define FLEXUS_BEGIN_COMPONENT_CONFIGURATION_SECTION() <core/aux_/layout/begin_comp_configuration_sec.hpp>
#define FLEXUS_END_COMPONENT_CONFIGURATION_SECTION() <core/aux_/layout/end_comp_configuration_sec.hpp>
#define FLEXUS_BEGIN_COMPONENT_INSTANTIATION_SECTION() <core/aux_/layout/begin_comp_instantiation_sec.hpp>
#define FLEXUS_END_COMPONENT_INSTANTIATION_SECTION() <core/aux_/layout/end_comp_instantiation_sec.hpp>
#define FLEXUS_BEGIN_COMPONENT_WIRING_SECTION() <core/aux_/layout/begin_comp_wiring_sec.hpp>
#define FLEXUS_END_COMPONENT_WIRING_SECTION() <core/aux_/layout/end_comp_wiring_sec.hpp>
#define FLEXUS_BEGIN_DRIVE_ORDER_SECTION() <core/aux_/layout/begin_drive_section.hpp>
#define FLEXUS_END_DRIVE_ORDER_SECTION() <core/aux_/layout/end_drive_section.hpp>

#define FLEXUS_BEGIN_COMPONENT_DECLARATION() <core/aux_/layout/begin_component_declaration.hpp>
#define FLEXUS_END_COMPONENT_DECLARATION() <core/aux_/layout/end_component_declaration.hpp>
#define FLEXUS_END_COMPONENT_DECLARATION() <core/aux_/layout/end_component_declaration.hpp>

#else //! FLEXUS_WIRING_FILE
// We are being included from a component declaration file within its
Expand All @@ -90,15 +86,15 @@ namespace SharedTypes {}
#include <core/types.hpp>

namespace Flexus {
namespace SharedTypes {}
namespace SharedTypes {
}
} // namespace Flexus

#define FLEXUS_BEGIN_COMPONENT_DECLARATION() <core/aux_/layout/begin_component_declaration.hpp>
#define FLEXUS_END_COMPONENT_DECLARATION() <core/aux_/layout/end_component_declaration.hpp>
#define FLEXUS_END_COMPONENT_DECLARATION() <core/aux_/layout/end_component_declaration.hpp>

#define FLEXUS_BEGIN_COMPONENT_IMPLEMENTATION() \
<core/aux_/layout/begin_component_implementation.hpp>
#define FLEXUS_END_COMPONENT_IMPLEMENTATION() <core/aux_/layout/end_component_implementation.hpp>
#define FLEXUS_BEGIN_COMPONENT_IMPLEMENTATION() <core/aux_/layout/begin_component_implementation.hpp>
#define FLEXUS_END_COMPONENT_IMPLEMENTATION() <core/aux_/layout/end_component_implementation.hpp>

#endif // FLEXUS_WIRING_FILE

Expand Down

0 comments on commit 204d064

Please sign in to comment.