Skip to content

Commit f0f9900

Browse files
committed
chore(IWYU):Remove redundant includes
1 parent eeff868 commit f0f9900

5 files changed

Lines changed: 6 additions & 10 deletions

File tree

include/fmt/format-inl.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@
1313

1414
# include <algorithm>
1515
# include <cerrno> // errno
16-
# include <climits>
17-
# include <cmath>
18-
# include <exception>
19-
# include <new> // std::bad_alloc
16+
# include <new> // std::bad_alloc
2017
#endif
2118

2219
#if defined(_WIN32) && !defined(FMT_USE_WRITE_CONSOLE)

src/os.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "fmt/os.h"
1414

1515
#ifndef FMT_MODULE
16-
# include <climits>
1716

1817
# if FMT_USE_FCNTL
1918
# include <sys/stat.h>
@@ -35,6 +34,8 @@
3534

3635
# ifdef _WIN32
3736
# include <windows.h>
37+
38+
# include <climits> // CHAR_BIT
3839
# endif
3940
#endif
4041

test/format-impl-test.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
#include "fmt/format.h"
1515
#include "gmock/gmock.h"
16-
#include "util.h"
1716

1817
using fmt::detail::bigint;
1918
using fmt::detail::fp;

test/posix-mock-test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
#include <errno.h>
1616
#include <fcntl.h>
1717

18-
#include <climits>
1918
#include <memory>
2019

2120
#include "../src/os.cc"
2221

2322
#ifdef _WIN32
2423
# include <io.h>
24+
25+
# include <climits> // UINT_MAX
2526
# undef max
2627
#endif
2728

2829
#include "gmock/gmock.h"
2930
#include "gtest-extra.h"
30-
#include "util.h"
3131

3232
using fmt::buffered_file;
3333

test/std-test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#include <string>
1313
#include <vector>
1414

15-
#include "fmt/os.h" // fmt::system_category
16-
#include "fmt/ranges.h"
15+
#include "fmt/os.h" // fmt::system_category
1716
#include "gtest-extra.h" // StartsWith
1817

1918
#ifdef __cpp_lib_filesystem

0 commit comments

Comments
 (0)