[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:
@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user