mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-30 19:09:22 +08:00
chore(IWYU):Remove redundant includes (#4758)
This commit is contained in:
parent
432fda7bfa
commit
d0e3d20af8
@ -18,10 +18,7 @@ extern "C" void __tsan_release(void*);
|
|||||||
|
|
||||||
# include <algorithm>
|
# include <algorithm>
|
||||||
# include <cerrno> // errno
|
# include <cerrno> // errno
|
||||||
# include <climits>
|
# include <new> // std::bad_alloc
|
||||||
# include <cmath>
|
|
||||||
# include <exception>
|
|
||||||
# include <new> // std::bad_alloc
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(FMT_USE_WRITE_CONSOLE)
|
#if defined(_WIN32) && !defined(FMT_USE_WRITE_CONSOLE)
|
||||||
|
|||||||
@ -13,7 +13,6 @@
|
|||||||
#include "fmt/os.h"
|
#include "fmt/os.h"
|
||||||
|
|
||||||
#ifndef FMT_MODULE
|
#ifndef FMT_MODULE
|
||||||
# include <climits>
|
|
||||||
|
|
||||||
# if FMT_USE_FCNTL
|
# if FMT_USE_FCNTL
|
||||||
# include <sys/stat.h>
|
# include <sys/stat.h>
|
||||||
@ -35,6 +34,8 @@
|
|||||||
|
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
|
|
||||||
|
# include <climits> // CHAR_BIT
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
#include "fmt/format.h"
|
#include "fmt/format.h"
|
||||||
#include "gmock/gmock.h"
|
#include "gmock/gmock.h"
|
||||||
#include "util.h"
|
|
||||||
|
|
||||||
using fmt::detail::bigint;
|
using fmt::detail::bigint;
|
||||||
using fmt::detail::fp;
|
using fmt::detail::fp;
|
||||||
|
|||||||
@ -15,19 +15,19 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
#include <climits>
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "../src/os.cc"
|
#include "../src/os.cc"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# include <io.h>
|
# include <io.h>
|
||||||
|
|
||||||
|
# include <climits> // UINT_MAX
|
||||||
# undef max
|
# undef max
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "gmock/gmock.h"
|
#include "gmock/gmock.h"
|
||||||
#include "gtest-extra.h"
|
#include "gtest-extra.h"
|
||||||
#include "util.h"
|
|
||||||
|
|
||||||
using fmt::buffered_file;
|
using fmt::buffered_file;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user