mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
iwyu fixes on lldbUtility.
This patch makes adjustments to header file includes in lldbUtility based on recommendations by the iwyu tool (include-what-you-use). The goal here is to make sure that all files include the exact set of headers which are needed for that file only, to eliminate cases of dead includes (e.g. someone deleted some code but forgot to delete the header includes that that code necessitated), and to eliminate the case where header includes are picked up transitively. llvm-svn: 299676
This commit is contained in:
@@ -14,7 +14,18 @@
|
||||
#define _DARWIN_UNLIMITED_SELECT
|
||||
#endif
|
||||
|
||||
// C Includes
|
||||
#include "lldb/Utility/SelectHelper.h"
|
||||
#include "lldb/Utility/Error.h"
|
||||
#include "lldb/Utility/LLDBAssert.h"
|
||||
#include "lldb/lldb-enumerations.h" // for ErrorType::eErrorTypePOSIX
|
||||
#include "lldb/lldb-types.h" // for socket_t
|
||||
|
||||
#include "llvm/ADT/DenseMap.h" // for DenseMapPair, DenseMap, Dense...
|
||||
#include "llvm/ADT/Optional.h" // for Optional
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono> // for microseconds, seconds, steady...
|
||||
|
||||
#include <errno.h>
|
||||
#if defined(_WIN32)
|
||||
// Define NOMINMAX to avoid macros that conflict with std::min and std::max
|
||||
@@ -24,16 +35,6 @@
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
// C++ Includes
|
||||
#include <algorithm>
|
||||
|
||||
// Other libraries and framework includes
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
||||
// Project includes
|
||||
#include "lldb/Utility/Error.h"
|
||||
#include "lldb/Utility/LLDBAssert.h"
|
||||
#include "lldb/Utility/SelectHelper.h"
|
||||
|
||||
SelectHelper::SelectHelper()
|
||||
: m_fd_map(), m_end_time() // Infinite timeout unless
|
||||
|
||||
Reference in New Issue
Block a user