[Lldb-commits] [lldb] [NFC][lldb-dap] Clean-up includes (PR #113839)
Zequan Wu via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 28 11:15:21 PDT 2024
================
@@ -6,25 +6,21 @@
//
//===----------------------------------------------------------------------===//
-#include <algorithm>
#include <iomanip>
#include <optional>
#include <sstream>
#include <string.h>
#include "llvm/ADT/StringRef.h"
-#include "llvm/Support/FormatAdapters.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ScopedPrinter.h"
-#include "lldb/API/SBBreakpoint.h"
-#include "lldb/API/SBBreakpointLocation.h"
#include "lldb/API/SBDeclaration.h"
+#include "lldb/API/SBStream.h"
#include "lldb/API/SBStringList.h"
#include "lldb/API/SBStructuredData.h"
#include "lldb/API/SBValue.h"
-#include "lldb/Host/PosixApi.h"
----------------
ZequanWu wrote:
Removing this include breaks lldb windows build because it includes `lldb/Host/windows/PosixApi.h` on windows. That provides the definition for `PATH_MAX`, used later in this file. I fixed it on https://github.com/llvm/llvm-project/commit/19c0a74ad6baa9eb38dbe0a20af7c67999c41821
https://github.com/llvm/llvm-project/pull/113839
More information about the lldb-commits
mailing list