forked from mpusz/mp-units
refactor: unit_text.h header include moved to text-related targets
This commit is contained in:
@@ -26,14 +26,16 @@
|
||||
#include <units/quantity.h>
|
||||
#include <string_view>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/unit_text.h>
|
||||
|
||||
UNITS_DIAGNOSTIC_PUSH
|
||||
UNITS_DIAGNOSTIC_IGNORE_UNREACHABLE
|
||||
UNITS_DIAGNOSTIC_IGNORE_SHADOW
|
||||
// IWYU pragma: begin_exports
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/locale.h>
|
||||
// IWYU pragma: end_exports
|
||||
UNITS_DIAGNOSTIC_POP
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
// Grammar
|
||||
//
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/external/fixed_string_io.h>
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <sstream>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <units/generic/dimensionless.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/quantity_cast.h>
|
||||
#include <units/ratio.h>
|
||||
#include <compare>
|
||||
|
||||
Reference in New Issue
Block a user