[chore](build) Use include-what-you-use to optimize includes (PART III) (#18958)

Currently, there are some useless includes in the codebase. We can use a tool named include-what-you-use to optimize these includes. By using a strict include-what-you-use policy, we can get lots of benefits from it.
This commit is contained in:
Adonis Ling
2023-04-24 14:51:51 +08:00
committed by GitHub
parent 6b219ab599
commit 16a394da0e
248 changed files with 1979 additions and 674 deletions

View File

@ -2,15 +2,16 @@
#include "gutil/stringprintf.h"
#include <errno.h>
#include <stdarg.h> // For va_list and related operations
#include <stdio.h> // MSVC requires this for _vsnprintf
#include <vector>
using std::vector;
#include <common/logging.h>
#include <ostream>
#include "gutil/macros.h"
using std::vector;
#include "common/logging.h"
// IWYU pragma: no_include <butil/macros.h>
#include "gutil/macros.h" // IWYU pragma: keep
#ifdef _MSC_VER
enum { IS__MSC_VER = 1 };