summaryrefslogtreecommitdiff
path: root/lldb/include
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-05-04 21:52:19 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-05-04 22:00:17 -0700
commit917b3a7e62063398d2cbc4f8fe56feb68b0fae4f (patch)
treeb185fba1e2131078173cc024d6c07d8fa21bb038 /lldb/include
parent8cf768839a8db8531a2d60ede9497fe82fea7a5a (diff)
downloadllvm-917b3a7e62063398d2cbc4f8fe56feb68b0fae4f.tar.gz
[lldb] Move Core/FileSpecList -> Utility/FileSpecList (NFC)
There's no reason for FileSpecList to live in lldb/Core while FileSpec lives in lldb/Utility. Move FileSpecList next to FileSpec.
Diffstat (limited to 'lldb/include')
-rw-r--r--lldb/include/lldb/Core/SearchFilter.h2
-rw-r--r--lldb/include/lldb/Interpreter/CommandCompletions.h2
-rw-r--r--lldb/include/lldb/Interpreter/OptionValueFileSpecList.h2
-rw-r--r--lldb/include/lldb/Symbol/CompileUnit.h2
-rw-r--r--lldb/include/lldb/Symbol/LocateSymbolFile.h2
-rw-r--r--lldb/include/lldb/Symbol/ObjectFile.h2
-rw-r--r--lldb/include/lldb/Utility/FileSpecList.h (renamed from lldb/include/lldb/Core/FileSpecList.h)9
7 files changed, 9 insertions, 12 deletions
diff --git a/lldb/include/lldb/Core/SearchFilter.h b/lldb/include/lldb/Core/SearchFilter.h
index 491e3ddc5985..7645499e948d 100644
--- a/lldb/include/lldb/Core/SearchFilter.h
+++ b/lldb/include/lldb/Core/SearchFilter.h
@@ -9,7 +9,7 @@
#ifndef LLDB_CORE_SEARCHFILTER_H
#define LLDB_CORE_SEARCHFILTER_H
-#include "lldb/Core/FileSpecList.h"
+#include "lldb/Utility/FileSpecList.h"
#include "lldb/Utility/StructuredData.h"
#include "lldb/Utility/FileSpec.h"
diff --git a/lldb/include/lldb/Interpreter/CommandCompletions.h b/lldb/include/lldb/Interpreter/CommandCompletions.h
index c13bc4997ff3..8578782e9fdd 100644
--- a/lldb/include/lldb/Interpreter/CommandCompletions.h
+++ b/lldb/include/lldb/Interpreter/CommandCompletions.h
@@ -11,10 +11,10 @@
#include <set>
-#include "lldb/Core/FileSpecList.h"
#include "lldb/Core/SearchFilter.h"
#include "lldb/Interpreter/Options.h"
#include "lldb/Utility/CompletionRequest.h"
+#include "lldb/Utility/FileSpecList.h"
#include "lldb/Utility/RegularExpression.h"
#include "lldb/lldb-private.h"
diff --git a/lldb/include/lldb/Interpreter/OptionValueFileSpecList.h b/lldb/include/lldb/Interpreter/OptionValueFileSpecList.h
index 29641c3a2087..bda6b5071d59 100644
--- a/lldb/include/lldb/Interpreter/OptionValueFileSpecList.h
+++ b/lldb/include/lldb/Interpreter/OptionValueFileSpecList.h
@@ -11,8 +11,8 @@
#include <mutex>
-#include "lldb/Core/FileSpecList.h"
#include "lldb/Interpreter/OptionValue.h"
+#include "lldb/Utility/FileSpecList.h"
namespace lldb_private {
diff --git a/lldb/include/lldb/Symbol/CompileUnit.h b/lldb/include/lldb/Symbol/CompileUnit.h
index 44e1d673f1fd..229ee2d27a70 100644
--- a/lldb/include/lldb/Symbol/CompileUnit.h
+++ b/lldb/include/lldb/Symbol/CompileUnit.h
@@ -9,13 +9,13 @@
#ifndef LLDB_SYMBOL_COMPILEUNIT_H
#define LLDB_SYMBOL_COMPILEUNIT_H
-#include "lldb/Core/FileSpecList.h"
#include "lldb/Core/ModuleChild.h"
#include "lldb/Core/SourceLocationSpec.h"
#include "lldb/Symbol/DebugMacros.h"
#include "lldb/Symbol/Function.h"
#include "lldb/Symbol/LineTable.h"
#include "lldb/Symbol/SourceModule.h"
+#include "lldb/Utility/FileSpecList.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/UserID.h"
#include "lldb/lldb-enumerations.h"
diff --git a/lldb/include/lldb/Symbol/LocateSymbolFile.h b/lldb/include/lldb/Symbol/LocateSymbolFile.h
index 6f0506e671ce..0bf655590967 100644
--- a/lldb/include/lldb/Symbol/LocateSymbolFile.h
+++ b/lldb/include/lldb/Symbol/LocateSymbolFile.h
@@ -11,8 +11,8 @@
#include <cstdint>
-#include "lldb/Core/FileSpecList.h"
#include "lldb/Utility/FileSpec.h"
+#include "lldb/Utility/FileSpecList.h"
#include "lldb/Utility/Status.h"
#include "lldb/lldb-forward.h"
diff --git a/lldb/include/lldb/Symbol/ObjectFile.h b/lldb/include/lldb/Symbol/ObjectFile.h
index 8862630495e6..9b006dfe05e7 100644
--- a/lldb/include/lldb/Symbol/ObjectFile.h
+++ b/lldb/include/lldb/Symbol/ObjectFile.h
@@ -9,7 +9,6 @@
#ifndef LLDB_SYMBOL_OBJECTFILE_H
#define LLDB_SYMBOL_OBJECTFILE_H
-#include "lldb/Core/FileSpecList.h"
#include "lldb/Core/ModuleChild.h"
#include "lldb/Core/PluginInterface.h"
#include "lldb/Symbol/Symtab.h"
@@ -17,6 +16,7 @@
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/FileSpec.h"
+#include "lldb/Utility/FileSpecList.h"
#include "lldb/Utility/UUID.h"
#include "lldb/lldb-private.h"
#include "llvm/Support/Threading.h"
diff --git a/lldb/include/lldb/Core/FileSpecList.h b/lldb/include/lldb/Utility/FileSpecList.h
index a5720d85e7cd..6b88cd2f3091 100644
--- a/lldb/include/lldb/Core/FileSpecList.h
+++ b/lldb/include/lldb/Utility/FileSpecList.h
@@ -8,18 +8,16 @@
#ifndef LLDB_CORE_FILESPECLIST_H
#define LLDB_CORE_FILESPECLIST_H
-#if defined(__cplusplus)
#include "lldb/Utility/FileSpec.h"
-#include <vector>
-
#include <cstddef>
+#include <vector>
namespace lldb_private {
class Stream;
-/// \class FileSpecList FileSpecList.h "lldb/Core/FileSpecList.h"
+/// \class FileSpecList FileSpecList.h "lldb/Utility/FileSpecList.h"
/// A file collection class.
///
/// A class that contains a mutable list of FileSpec objects.
@@ -84,7 +82,7 @@ public:
///
/// \param[in] args
/// Arguments to create the FileSpec
- template <class... Args> void EmplaceBack(Args &&... args) {
+ template <class... Args> void EmplaceBack(Args &&...args) {
m_files.emplace_back(std::forward<Args>(args)...);
}
@@ -227,5 +225,4 @@ protected:
} // namespace lldb_private
-#endif // #if defined(__cplusplus)
#endif // LLDB_CORE_FILESPECLIST_H