[modules] Fix missing includes/typo in LLDB's includes. [NFC]
authorRaphael Isemann <teemperor@gmail.com>
Sun, 21 Jan 2018 09:54:19 +0000 (09:54 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Sun, 21 Jan 2018 09:54:19 +0000 (09:54 +0000)
Summary:
This patch adds missing includes to the LLDB headers inside `include/` as a first step of building LLDB's source with C++ modules. It also fixes this single `stds::` typo.

Some quick map why some non-obvious includes were necessary:
* lldb/lldb-defines.h for LLDB_INVALID_ADDRESS
* lldb/lldb-types.h for addr_t
* lldb/lldb-defines.h for DISALLOW_COPY_AND_ASSIG
* lldb/DataFormatters/TypeSynthetic.h for SyntheticChildrenFrontEnd

Reviewers: aprantl

Reviewed By: aprantl

Subscribers: zturner, lldb-commits

Differential Revision: https://reviews.llvm.org/D42340

llvm-svn: 323064

lldb/include/lldb/Core/LoadedModuleInfoList.h
lldb/include/lldb/Core/ThreadSafeDenseSet.h
lldb/include/lldb/Core/ThreadSafeValue.h
lldb/include/lldb/DataFormatters/VectorIterator.h
lldb/include/lldb/Target/ProcessStructReader.h
lldb/include/lldb/Utility/AnsiTerminal.h
lldb/include/lldb/Utility/SharedCluster.h

index ecbe354..3cd1c4d 100644 (file)
 // C Includes
 
 // C++ Includes
+#include <cassert>
 #include <vector>
 
 // Other libraries and framework includes
+#include "lldb/lldb-defines.h"
 #include "lldb/lldb-private-forward.h"
+#include "lldb/lldb-types.h"
 
 namespace lldb_private {
 class LoadedModuleInfoList {
index 49c55e9..44ec246 100644 (file)
@@ -46,7 +46,7 @@ public:
   }
 
   void Clear() {
-    stds::lock_guard<_MutexType> guard(m_mutex);
+    std::lock_guard<_MutexType> guard(m_mutex);
     m_set.clear();
   }
 
index 60eaf91..10ef8fa 100644 (file)
@@ -17,6 +17,7 @@
 
 // Other libraries and framework includes
 // Project includes
+#include "lldb/lldb-defines.h"
 
 namespace lldb_private {
 
index fcf5aba..f695d22 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "lldb/lldb-forward.h"
 
+#include "lldb/DataFormatters/TypeSynthetic.h"
 #include "lldb/Target/ExecutionContext.h"
 #include "lldb/Utility/ConstString.h"
 
index cfc8fe1..8f1445a 100644 (file)
@@ -16,6 +16,7 @@
 #include "lldb/Symbol/CompilerType.h"
 #include "lldb/Target/Process.h"
 #include "lldb/Utility/ConstString.h"
+#include "lldb/Utility/DataBufferHeap.h"
 #include "lldb/Utility/DataExtractor.h"
 #include "lldb/Utility/Status.h"
 
index 5eaf2fd..845a050 100644 (file)
@@ -50,6 +50,7 @@
 #define ANSI_1_CTRL(ctrl1) "\033["##ctrl1 ANSI_ESC_END
 #define ANSI_2_CTRL(ctrl1, ctrl2) "\033["##ctrl1 ";"##ctrl2 ANSI_ESC_END
 
+#include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringRef.h"
 
index b01f702..8b5f7be 100644 (file)
@@ -15,6 +15,8 @@
 
 #include "llvm/ADT/SmallPtrSet.h"
 
+#include <mutex>
+
 namespace lldb_private {
 
 namespace imp {