mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 11:02:04 +08:00
[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.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
#include <mutex>
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Interpreter/OptionValue.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
|
||||
namespace lldb_private {
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
@@ -10,9 +10,9 @@
|
||||
#include "Utils.h"
|
||||
#include "lldb/API/SBFileSpec.h"
|
||||
#include "lldb/API/SBStream.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Host/PosixApi.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/Instrumentation.h"
|
||||
#include "lldb/Utility/Stream.h"
|
||||
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "llvm/ADT/StringSet.h"
|
||||
|
||||
#include "lldb/Breakpoint/Watchpoint.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Module.h"
|
||||
#include "lldb/Core/PluginManager.h"
|
||||
#include "lldb/DataFormatters/DataVisualization.h"
|
||||
@@ -27,6 +26,7 @@
|
||||
#include "lldb/Target/RegisterContext.h"
|
||||
#include "lldb/Target/Thread.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/StreamString.h"
|
||||
#include "lldb/Utility/TildeExpressionResolver.h"
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ add_lldb_library(lldbCore
|
||||
DynamicLoader.cpp
|
||||
EmulateInstruction.cpp
|
||||
FileLineResolver.cpp
|
||||
FileSpecList.cpp
|
||||
FormatEntity.cpp
|
||||
Highlighter.cpp
|
||||
IOHandler.cpp
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
|
||||
#include "lldb/Core/FileLineResolver.h"
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Symbol/CompileUnit.h"
|
||||
#include "lldb/Symbol/LineTable.h"
|
||||
#include "lldb/Utility/ConstString.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/Stream.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include "lldb/Core/AddressResolverFileLine.h"
|
||||
#include "lldb/Core/DataFileCache.h"
|
||||
#include "lldb/Core/Debugger.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Mangled.h"
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Core/SearchFilter.h"
|
||||
@@ -39,6 +38,7 @@
|
||||
#include "lldb/Target/Process.h"
|
||||
#include "lldb/Target/Target.h"
|
||||
#include "lldb/Utility/DataBufferHeap.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/LLDBAssert.h"
|
||||
#include "lldb/Utility/LLDBLog.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lldb/Core/ModuleList.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Module.h"
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Host/FileSystem.h"
|
||||
@@ -22,6 +21,7 @@
|
||||
#include "lldb/Symbol/VariableList.h"
|
||||
#include "lldb/Utility/ArchSpec.h"
|
||||
#include "lldb/Utility/ConstString.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/LLDBLog.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
#include "lldb/Utility/UUID.h"
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Module.h"
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Core/PluginManager.h"
|
||||
@@ -21,6 +20,7 @@
|
||||
#include "lldb/Utility/DataBuffer.h"
|
||||
#include "lldb/Utility/DataBufferHeap.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
#include "lldb/Utility/Timer.h"
|
||||
#include "lldb/Utility/UUID.h"
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
|
||||
// These are for the Sourcename completers.
|
||||
// FIXME: Make a separate file for the completers.
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/DataFormatters/FormatManager.h"
|
||||
#include "lldb/Target/Process.h"
|
||||
#include "lldb/Target/Target.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
|
||||
#include "lldb/Target/Language.h"
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef LLDB_SOURCE_PLUGINS_EXPRESSIONPARSER_CLANG_CPPMODULECONFIGURATION_H
|
||||
#define LLDB_SOURCE_PLUGINS_EXPRESSIONPARSER_CLANG_CPPMODULECONFIGURATION_H
|
||||
|
||||
#include <lldb/Core/FileSpecList.h>
|
||||
#include <lldb/Utility/FileSpecList.h>
|
||||
#include <llvm/Support/Regex.h>
|
||||
|
||||
namespace lldb_private {
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
#include <optional>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Module.h"
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Core/PluginManager.h"
|
||||
@@ -27,6 +26,7 @@
|
||||
#include "lldb/Target/Target.h"
|
||||
#include "lldb/Utility/ArchSpec.h"
|
||||
#include "lldb/Utility/DataBufferHeap.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/LLDBLog.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
#include "lldb/Utility/RangeMap.h"
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "Plugins/Process/Utility/RegisterContextDarwin_i386.h"
|
||||
#include "Plugins/Process/Utility/RegisterContextDarwin_x86_64.h"
|
||||
#include "lldb/Core/Debugger.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Module.h"
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Core/PluginManager.h"
|
||||
@@ -36,6 +35,7 @@
|
||||
#include "lldb/Utility/ArchSpec.h"
|
||||
#include "lldb/Utility/DataBuffer.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/LLDBLog.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
#include "lldb/Utility/RangeMap.h"
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
#define LLDB_SOURCE_PLUGINS_OBJECTFILE_MACH_O_OBJECTFILEMACHO_H
|
||||
|
||||
#include "lldb/Core/Address.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Host/SafeMachO.h"
|
||||
#include "lldb/Symbol/ObjectFile.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/RangeMap.h"
|
||||
#include "lldb/Utility/StreamString.h"
|
||||
#include "lldb/Utility/UUID.h"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "PECallFrameInfo.h"
|
||||
#include "WindowsMiniDump.h"
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Core/Module.h"
|
||||
#include "lldb/Core/ModuleSpec.h"
|
||||
#include "lldb/Core/PluginManager.h"
|
||||
@@ -25,6 +24,7 @@
|
||||
#include "lldb/Utility/ArchSpec.h"
|
||||
#include "lldb/Utility/DataBufferHeap.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/LLDBLog.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
#include "lldb/Utility/StreamString.h"
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
#define LLDB_SOURCE_PLUGINS_PLATFORM_MACOSX_PLATFORMDARWIN_H
|
||||
|
||||
#include "Plugins/Platform/POSIX/PlatformPOSIX.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Host/FileSystem.h"
|
||||
#include "lldb/Host/ProcessLaunchInfo.h"
|
||||
#include "lldb/Utility/ArchSpec.h"
|
||||
#include "lldb/Utility/ConstString.h"
|
||||
#include "lldb/Utility/FileSpec.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/Status.h"
|
||||
#include "lldb/Utility/StructuredData.h"
|
||||
#include "lldb/Utility/XcodeSDK.h"
|
||||
@@ -51,7 +51,7 @@ public:
|
||||
static lldb::PlatformSP CreateInstance(bool force, const ArchSpec *arch);
|
||||
|
||||
static void DebuggerInitialize(lldb_private::Debugger &debugger);
|
||||
|
||||
|
||||
static void Initialize();
|
||||
|
||||
static void Terminate();
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
FileSpec LocateExecutable(const char *basename) override;
|
||||
|
||||
Status LaunchProcess(ProcessLaunchInfo &launch_info) override;
|
||||
|
||||
|
||||
Args GetExtraStartupCommands() override;
|
||||
|
||||
static std::tuple<llvm::VersionTuple, llvm::StringRef>
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_BREAKPAD_SYMBOLFILEBREAKPAD_H
|
||||
|
||||
#include "Plugins/ObjectFile/Breakpad/BreakpadRecords.h"
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Symbol/LineTable.h"
|
||||
#include "lldb/Symbol/PostfixExpression.h"
|
||||
#include "lldb/Symbol/SymbolFile.h"
|
||||
#include "lldb/Symbol/UnwindPlan.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include <optional>
|
||||
|
||||
namespace lldb_private {
|
||||
|
||||
@@ -39,6 +39,7 @@ add_lldb_library(lldbUtility NO_INTERNAL_DEPENDENCIES
|
||||
Environment.cpp
|
||||
Event.cpp
|
||||
FileSpec.cpp
|
||||
FileSpecList.cpp
|
||||
GDBRemote.cpp
|
||||
IOObject.cpp
|
||||
LLDBAssert.cpp
|
||||
|
||||
@@ -6,14 +6,12 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
#include "lldb/Utility/ConstString.h"
|
||||
#include "lldb/Utility/Stream.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
using namespace lldb_private;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "lldb/Core/FileSpecList.h"
|
||||
#include "lldb/Utility/FileSpecList.h"
|
||||
|
||||
using namespace lldb_private;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user