refactor: 💥 framework.h introduced + IWYU

This commit is contained in:
Mateusz Pusz committed 2024-04-24 21:09:29 +02:00
1 parent 2a05f931e7
commit c066104af7
123 files changed
+478 -337

No files matched your search

@@ -22,5 +22,11 @@
#pragma once
// IWYU pragma: begin_exports
#include <mp-units/systems/angular/math.h>
#include <mp-units/systems/angular/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
@@ -26,10 +26,10 @@
#include <mp-units/systems/angular/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/bits/value_cast.h>
#include <mp-units/customization_points.h>
#include <mp-units/quantity.h>
#include <mp-units/unit.h>
#include <mp-units/framework/customization_points.h>
#include <mp-units/framework/quantity.h>
#include <mp-units/framework/unit.h>
#include <mp-units/framework/value_cast.h>
#include <cmath>
#endif
@@ -25,9 +25,9 @@
#include <mp-units/bits/module_macros.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/dimension.h>
#include <mp-units/quantity_spec.h>
#include <mp-units/unit.h>
#include <mp-units/framework/dimension.h>
#include <mp-units/framework/quantity_spec.h>
#include <mp-units/framework/unit.h>
#endif
MP_UNITS_EXPORT
@@ -25,9 +25,11 @@
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/si/units.h>
// IWYU pragma: begin_exports
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::cgs {
@@ -24,11 +24,13 @@
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/si/si.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <cstdint>
// IWYU pragma: begin_exports
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units {
@@ -26,9 +26,11 @@
#include <mp-units/systems/si/constants.h>
#include <mp-units/systems/si/units.h>
// IWYU pragma: begin_exports
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::iau {
@@ -25,7 +25,7 @@
#include <mp-units/bits/module_macros.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework/unit.h>
#endif
namespace mp_units::iec80000 {
@@ -27,4 +27,8 @@
#include <mp-units/systems/iec80000/quantities.h>
#include <mp-units/systems/iec80000/unit_symbols.h>
#include <mp-units/systems/iec80000/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
@@ -27,8 +27,8 @@
#include <mp-units/systems/isq/space_and_time.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/dimension.h>
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/dimension.h>
#include <mp-units/framework/quantity_spec.h>
#endif
MP_UNITS_EXPORT
@@ -27,7 +27,7 @@
#include <mp-units/systems/si/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework/unit.h>
#endif
MP_UNITS_EXPORT
@@ -23,11 +23,14 @@
#pragma once
#include <mp-units/bits/module_macros.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/international/international.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::imperial {
@@ -26,9 +26,11 @@
#include <mp-units/systems/si/constants.h>
#include <mp-units/systems/si/units.h>
// IWYU pragma: begin_exports
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::international {
@@ -23,11 +23,14 @@
#pragma once
#include <mp-units/bits/module_macros.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/si_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -25,9 +25,9 @@
#include <mp-units/bits/module_macros.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/dimension.h>
#include <mp-units/quantity.h>
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/dimension.h>
#include <mp-units/framework/quantity.h>
#include <mp-units/framework/quantity_spec.h>
#endif
MP_UNITS_EXPORT
@@ -23,13 +23,16 @@
#pragma once
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/isq/base_quantities.h>
#include <mp-units/systems/isq/mechanics.h>
#include <mp-units/systems/isq/space_and_time.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/base_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -23,13 +23,16 @@
#pragma once
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/isq/base_quantities.h>
#include <mp-units/systems/isq/electromagnetism.h>
#include <mp-units/systems/isq/space_and_time.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/base_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -23,12 +23,15 @@
#pragma once
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/isq/si_quantities.h>
#include <mp-units/systems/isq/space_and_time.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/si_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -23,11 +23,14 @@
#pragma once
#include <mp-units/bits/module_macros.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/base_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -23,11 +23,14 @@
#pragma once
#include <mp-units/bits/module_macros.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/si_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -24,12 +24,15 @@
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/isq/mechanics.h>
#include <mp-units/systems/isq/si_quantities.h>
#include <mp-units/systems/isq/space_and_time.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/isq/si_quantities.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/framework/quantity_spec.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq {
@@ -23,13 +23,16 @@
#pragma once
#include <mp-units/bits/module_macros.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/angular/angular.h>
#include <mp-units/systems/isq/isq.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_spec.h>
#include <mp-units/reference.h>
#include <mp-units/framework/quantity_spec.h>
#include <mp-units/framework/reference.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::isq_angle {
@@ -27,10 +27,11 @@
#include <mp-units/systems/isq/space_and_time.h>
#include <mp-units/systems/si/prefixes.h>
// IWYU pragma: begin_exports
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/system_reference.h>
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::natural {
@@ -28,8 +28,8 @@
#include <mp-units/systems/si/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/customization_points.h>
#include <mp-units/quantity_point.h>
#include <mp-units/framework/customization_points.h>
#include <mp-units/framework/quantity_point.h>
#include <chrono>
#endif
@@ -26,7 +26,7 @@
#include <mp-units/systems/si/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity.h>
#include <mp-units/framework/quantity.h>
#endif
MP_UNITS_EXPORT
@@ -27,10 +27,10 @@
#include <mp-units/systems/si/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/bits/value_cast.h>
#include <mp-units/customization_points.h>
#include <mp-units/quantity.h>
#include <mp-units/unit.h>
#include <mp-units/framework/customization_points.h>
#include <mp-units/framework/quantity.h>
#include <mp-units/framework/unit.h>
#include <mp-units/framework/value_cast.h>
#include <cmath>
#endif
@@ -25,7 +25,7 @@
#include <mp-units/bits/module_macros.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework/unit.h>
#endif
namespace mp_units::si {
@@ -22,9 +22,15 @@
#pragma once
// IWYU pragma: begin_exports
#include <mp-units/systems/si/chrono.h>
#include <mp-units/systems/si/constants.h>
#include <mp-units/systems/si/math.h>
#include <mp-units/systems/si/prefixes.h>
#include <mp-units/systems/si/unit_symbols.h>
#include <mp-units/systems/si/units.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
@@ -27,8 +27,8 @@
#include <mp-units/systems/si/prefixes.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/quantity_point.h>
#include <mp-units/unit.h>
#include <mp-units/framework/quantity_point.h>
#include <mp-units/framework/unit.h>
#endif
MP_UNITS_EXPORT
@@ -25,9 +25,11 @@
#include <mp-units/bits/module_macros.h>
#include <mp-units/systems/international/international.h>
// IWYU pragma: begin_exports
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::typographic {
@@ -23,11 +23,14 @@
#pragma once
#include <mp-units/bits/module_macros.h>
// IWYU pragma: begin_exports
#include <mp-units/systems/international/international.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <mp-units/framework.h>
#endif
// IWYU pragma: end_exports
MP_UNITS_EXPORT
namespace mp_units::usc {