refactor: IWYU applied to the source files
`alternative_namespaces` examples left out as I consider them a subject for removal in the nearest future.
This commit is contained in:
1 parent
01935996e6
commit
37cfc53d1d
163 files changed
+977
-352
No files matched your search
@@ -22,8 +22,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/external/fixed_string.h>
|
||||
#include <units/bits/basic_concepts.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -22,12 +22,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/external/downcasting.h>
|
||||
#include <units/bits/external/fixed_string.h>
|
||||
#include <units/bits/external/hacks.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/external/fixed_string.h>
|
||||
#include <units/customization_points.h>
|
||||
#include <units/ratio.h>
|
||||
#include <units/bits/external/type_traits.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/derived_dimension_base.h>
|
||||
#include <units/bits/dim_consolidate.h>
|
||||
#include <units/bits/external/downcasting.h>
|
||||
#include <units/bits/external/hacks.h>
|
||||
#include <units/bits/external/type_list.h>
|
||||
#include <units/derived_dimension.h>
|
||||
#include <units/unit.h>
|
||||
|
||||
|
||||
+4
-1
@@ -22,9 +22,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/external/hacks.h>
|
||||
// IWYU pragma: begin_exports
|
||||
#include <cstdlib>
|
||||
#include <compare>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
// TODO use <algorithm> when moved to C++20 modules (parsing takes too long for each translation unit)
|
||||
|
||||
|
||||
@@ -22,7 +22,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/external/hacks.h>
|
||||
#include <units/bits/external/type_traits.h>
|
||||
#include <cstddef>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (push)
|
||||
|
||||
@@ -23,8 +23,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <units/customization_points.h>
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/isq/si/time.h>
|
||||
#include <chrono>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -22,5 +22,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/basic_concepts.h>
|
||||
#include <units/bits/quantity_of.h>
|
||||
// IWYU pragma: end_exports
|
||||
@@ -29,7 +29,10 @@
|
||||
#include <units/bits/dim_unpack.h>
|
||||
#include <units/bits/external/downcasting.h>
|
||||
#include <units/bits/external/type_list.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/exponent.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -22,8 +22,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/isq/si/prefixes.h>
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/quantity.h>
|
||||
#include <units/reference.h>
|
||||
#include <units/symbol_text.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <units/isq/si/prefixes.h>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -46,7 +51,7 @@ constexpr auto operator"" _q_rad(long double l) { return angle<radian, long doub
|
||||
|
||||
} // namespace literals
|
||||
|
||||
inline namespace references {
|
||||
namespace references {
|
||||
|
||||
inline constexpr auto rad = reference<dim_angle<>, radian>{};
|
||||
|
||||
|
||||
@@ -22,6 +22,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/symbol_text.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <units/quantity_cast.h>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -22,9 +22,17 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/concepts.h>
|
||||
#include <units/bits/dimension_op.h>
|
||||
#include <units/bits/external/hacks.h>
|
||||
#include <units/generic/dimensionless.h>
|
||||
#include <units/quantity.h>
|
||||
#include <units/unit.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <limits>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -24,8 +24,10 @@
|
||||
|
||||
#include <units/bits/external/downcasting.h>
|
||||
#include <units/bits/basic_concepts.h>
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/ratio.h>
|
||||
#include <units/symbol_text.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -24,12 +24,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/common_quantity.h>
|
||||
#include <units/bits/pow.h>
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/generic/dimensionless.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/quantity_cast.h>
|
||||
#include <units/reference.h>
|
||||
#include <units/ratio.h>
|
||||
#include <compare>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <units/reference.h>
|
||||
#include <utility>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -23,8 +23,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/kind.h>
|
||||
#include <units/quantity.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <concepts>
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
@@ -23,8 +23,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/quantity.h>
|
||||
#include <compare>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <units/customization_points.h>
|
||||
#include <units/generic/dimensionless.h>
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/quantity_kind.h>
|
||||
#include <units/quantity_point.h>
|
||||
#include <compare>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/concepts.h>
|
||||
#include <random>
|
||||
#include <functional>
|
||||
#include <units/concepts.h>
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -22,15 +22,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/external/hacks.h>
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/math_concepts.h>
|
||||
#include <units/bits/ratio_maths.h>
|
||||
#include <units/bits/pow.h>
|
||||
#include <units/bits/ratio_maths.h>
|
||||
#include <units/bits/root.h>
|
||||
#include <cstdint>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <array>
|
||||
#include <numeric>
|
||||
#include <type_traits>
|
||||
#include <tuple>
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
|
||||
namespace units {
|
||||
|
||||
@@ -22,10 +22,14 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/external/fixed_string.h>
|
||||
#include <units/bits/external/hacks.h>
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
#include <compare>
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/deduced_symbol_text.h>
|
||||
#include <units/bits/deduced_unit.h>
|
||||
#include <units/bits/external/downcasting.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/deduced_unit.h>
|
||||
#include <units/bits/external/fixed_string.h>
|
||||
#include <units/bits/external/text_tools.h>
|
||||
#include <units/bits/external/type_traits.h>
|
||||
#include <units/derived_dimension.h>
|
||||
#include <units/prefix.h>
|
||||
#include <units/prefix.h>
|
||||
#include <units/ratio.h>
|
||||
#include <units/symbol_text.h>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
namespace units {
|
||||
|
||||
|
||||
Reference in new issue
Block a user