]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/lldb-forward.h
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r301441, and update
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / lldb-forward.h
1 //===-- lldb-forward.h ------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLDB_lldb_forward_h_
11 #define LLDB_lldb_forward_h_
12
13 #if defined(__cplusplus)
14
15 #include "lldb/Utility/SharingPtr.h"
16
17 //----------------------------------------------------------------------
18 // lldb forward declarations
19 //----------------------------------------------------------------------
20 namespace lldb_private {
21
22 class ABI;
23 class Address;
24 class AddressImpl;
25 class AddressRange;
26 class AddressResolver;
27 class ArchSpec;
28 class ArmUnwindInfo;
29 class Args;
30 class ASTResultSynthesizer;
31 class ASTStructExtractor;
32 class Baton;
33 class Block;
34 class Breakpoint;
35 class BreakpointID;
36 class BreakpointIDList;
37 class BreakpointList;
38 class BreakpointLocation;
39 class BreakpointLocationCollection;
40 class BreakpointLocationList;
41 class BreakpointOptions;
42 class BreakpointResolver;
43 class BreakpointSite;
44 class BreakpointSiteList;
45 class BroadcastEventSpec;
46 class Broadcaster;
47 class BroadcasterManager;
48 class CPPLanguageRuntime;
49 class ClangASTContext;
50 class ClangASTImporter;
51 class ClangASTMetadata;
52 class ClangASTSource;
53 class ClangExpressionDeclMap;
54 class ClangExpressionParser;
55 class ClangExpressionVariable;
56 class ClangExpressionVariables;
57 class ClangModulesDeclVendor;
58 class ClangPersistentVariables;
59 class CommandInterpreter;
60 class CommandInterpreterRunOptions;
61 class CommandObject;
62 class CommandObjectMultiword;
63 class CommandReturnObject;
64 class Communication;
65 class CompactUnwindInfo;
66 struct CompilerContext;
67 class CompilerDecl;
68 class CompilerDeclContext;
69 class CompilerType;
70 class CompileUnit;
71 class Condition;
72 class Connection;
73 class ConnectionFileDescriptor;
74 class ConstString;
75 class CXXSyntheticChildren;
76 class DWARFCallFrameInfo;
77 class DWARFExpression;
78 class DataBuffer;
79 class DataEncoder;
80 class DataExtractor;
81 class Debugger;
82 class Declaration;
83 class DiagnosticManager;
84 class Disassembler;
85 class DumpValueObjectOptions;
86 class DynamicCheckerFunctions;
87 class DynamicLoader;
88 class Editline;
89 class EmulateInstruction;
90 class Error;
91 class EvaluateExpressionOptions;
92 class Event;
93 class EventData;
94 class EventDataStructuredData;
95 class ExecutionContext;
96 class ExecutionContextRef;
97 class ExecutionContextRefLocker;
98 class ExecutionContextScope;
99 class Expression;
100 class ExpressionVariable;
101 class ExpressionVariableList;
102 class ExpressionTypeSystemHelper;
103 class File;
104 class FileSpec;
105 class FileSpecList;
106 class Flags;
107 class GoASTContext;
108 class TypeCategoryImpl;
109 class FormatManager;
110 class FormattersMatchCandidate;
111 class FuncUnwinders;
112 class Function;
113 class FunctionInfo;
114 class InlineFunctionInfo;
115 class Instruction;
116 class InstructionList;
117 class InstrumentationRuntime;
118 class IOHandler;
119 class IOObject;
120 class IRExecutionUnit;
121 class JITLoader;
122 class JITLoaderList;
123 class Language;
124 class LanguageCategory;
125 class LanguageRuntime;
126 class MemoryRegionInfo;
127 class LineTable;
128 class Listener;
129 class Log;
130 class Mangled;
131 class Materializer;
132 class MemoryHistory;
133 class Module;
134 class ModuleList;
135 class ModuleSpec;
136 class ModuleSpecList;
137 class Mutex;
138 struct NameSearchContext;
139 class ObjCLanguageRuntime;
140 class ObjCRuntimeSyntheticProvider;
141 class ObjectContainer;
142 class OptionGroup;
143 class OptionGroupOptions;
144 class OptionGroupPlatform;
145 class ObjectFile;
146 class ObjectFileJITDelegate;
147 class OperatingSystem;
148 class Options;
149 class OptionValue;
150 class OptionValueArch;
151 class OptionValueArgs;
152 class OptionValueArray;
153 class OptionValueBoolean;
154 class OptionValueChar;
155 class OptionValueDictionary;
156 class OptionValueEnumeration;
157 class OptionValueFileSpec;
158 class OptionValueFileSpecList;
159 class OptionValueFormat;
160 class OptionValueLanguage;
161 class OptionValueFormatEntity;
162 class OptionValuePathMappings;
163 class OptionValueProperties;
164 class OptionValueRegex;
165 class OptionValueSInt64;
166 class OptionValueString;
167 class OptionValueUInt64;
168 class OptionValueUUID;
169 class NamedOption;
170 class PathMappingList;
171 class FunctionCaller;
172 class PersistentExpressionState;
173 class Platform;
174 class Process;
175 class ProcessAttachInfo;
176 class ProcessModID;
177 class ProcessInfo;
178 class ProcessInstanceInfo;
179 class ProcessInstanceInfoList;
180 class ProcessInstanceInfoMatch;
181 class ProcessLaunchInfo;
182 class Property;
183 struct PropertyDefinition;
184 class RegisterCheckpoint;
185 class RegisterContext;
186 class RegisterLocation;
187 class RegisterLocationList;
188 class RegisterValue;
189 class RegularExpression;
190 class REPL;
191 class Scalar;
192 class ScriptInterpreter;
193 class ScriptInterpreterLocker;
194 struct ScriptSummaryFormat;
195 class SearchFilter;
196 class Section;
197 class SectionImpl;
198 class SectionList;
199 class SectionLoadHistory;
200 class SectionLoadList;
201 class Settings;
202 class SourceManager;
203 class SourceManagerImpl;
204 class StackFrame;
205 class StackFrameImpl;
206 class StackFrameList;
207 class StackID;
208 class StopInfo;
209 class Stoppoint;
210 class StoppointCallbackContext;
211 class StoppointLocation;
212 class Stream;
213 template <unsigned N> class StreamBuffer;
214 class StreamFile;
215 class StreamString;
216 class StringList;
217 struct StringSummaryFormat;
218 class StructuredDataImpl;
219 class StructuredDataPlugin;
220 class SystemRuntime;
221 class TypeSummaryImpl;
222 class TypeSummaryOptions;
223 class Symbol;
224 class SymbolContext;
225 class SymbolContextList;
226 class SymbolContextScope;
227 class SymbolContextSpecifier;
228 class SymbolFile;
229 class SymbolFileType;
230 class SymbolVendor;
231 class Symtab;
232 class SyntheticChildren;
233 class SyntheticChildrenFrontEnd;
234 class TypeFilterImpl;
235 class TypeSystem;
236 #ifndef LLDB_DISABLE_PYTHON
237 class ScriptedSyntheticChildren;
238 #endif
239 class Queue;
240 class QueueItem;
241 class QueueImpl;
242 class Target;
243 class TargetList;
244 class TargetProperties;
245 class Thread;
246 class ThreadCollection;
247 class ThreadList;
248 class ThreadPlan;
249 class ThreadPlanBase;
250 class ThreadPlanRunToAddress;
251 class ThreadPlanStepInstruction;
252 class ThreadPlanStepOut;
253 class ThreadPlanStepOverBreakpoint;
254 class ThreadPlanStepRange;
255 class ThreadPlanStepThrough;
256 class ThreadPlanTracer;
257 class ThreadSpec;
258 class TraceOptions;
259 class Type;
260 class TypeAndOrName;
261 class TypeCategoryMap;
262 class TypeImpl;
263 class TypeList;
264 class TypeMap;
265 class TypeListImpl;
266 class TypeMemberImpl;
267 class TypeMemberFunctionImpl;
268 class TypeEnumMemberImpl;
269 class TypeEnumMemberListImpl;
270 class TypeFormatImpl;
271 class TypeNameSpecifierImpl;
272 class TypePair;
273 class TypeValidatorImpl;
274 class UUID;
275 class UnixSignals;
276 class Unwind;
277 class UnwindAssembly;
278 class UnwindPlan;
279 class UnwindTable;
280 class UserExpression;
281 class UtilityFunction;
282 class VMRange;
283 class Value;
284 class ValueList;
285 class ValueObject;
286 class ValueObjectChild;
287 class ValueObjectConstResult;
288 class ValueObjectConstResultChild;
289 class ValueObjectConstResultImpl;
290 class ValueObjectList;
291 class ValueObjectPrinter;
292 class Variable;
293 class VariableList;
294 class Watchpoint;
295 class WatchpointList;
296 class WatchpointOptions;
297 struct LineEntry;
298
299 } // namespace lldb_private
300
301 //----------------------------------------------------------------------
302 // lldb forward declarations
303 //----------------------------------------------------------------------
304 namespace lldb {
305
306 typedef std::shared_ptr<lldb_private::ABI> ABISP;
307 typedef std::shared_ptr<lldb_private::Baton> BatonSP;
308 typedef std::shared_ptr<lldb_private::Block> BlockSP;
309 typedef std::shared_ptr<lldb_private::Breakpoint> BreakpointSP;
310 typedef std::weak_ptr<lldb_private::Breakpoint> BreakpointWP;
311 typedef std::shared_ptr<lldb_private::BreakpointSite> BreakpointSiteSP;
312 typedef std::weak_ptr<lldb_private::BreakpointSite> BreakpointSiteWP;
313 typedef std::shared_ptr<lldb_private::BreakpointLocation> BreakpointLocationSP;
314 typedef std::weak_ptr<lldb_private::BreakpointLocation> BreakpointLocationWP;
315 typedef std::shared_ptr<lldb_private::BreakpointResolver> BreakpointResolverSP;
316 typedef std::shared_ptr<lldb_private::Broadcaster> BroadcasterSP;
317 typedef std::shared_ptr<lldb_private::BroadcasterManager> BroadcasterManagerSP;
318 typedef std::weak_ptr<lldb_private::BroadcasterManager> BroadcasterManagerWP;
319 typedef std::unique_ptr<lldb_private::ClangASTContext> ClangASTContextUP;
320 typedef std::shared_ptr<lldb_private::ClangASTImporter> ClangASTImporterSP;
321 typedef std::unique_ptr<lldb_private::ClangModulesDeclVendor>
322     ClangModulesDeclVendorUP;
323 typedef std::unique_ptr<lldb_private::ClangPersistentVariables>
324     ClangPersistentVariablesUP;
325 typedef std::shared_ptr<lldb_private::UserExpression> UserExpressionSP;
326 typedef std::shared_ptr<lldb_private::CommandObject> CommandObjectSP;
327 typedef std::shared_ptr<lldb_private::Communication> CommunicationSP;
328 typedef std::shared_ptr<lldb_private::Connection> ConnectionSP;
329 typedef std::shared_ptr<lldb_private::CompileUnit> CompUnitSP;
330 typedef std::shared_ptr<lldb_private::DataBuffer> DataBufferSP;
331 typedef std::shared_ptr<lldb_private::DataExtractor> DataExtractorSP;
332 typedef std::shared_ptr<lldb_private::Debugger> DebuggerSP;
333 typedef std::weak_ptr<lldb_private::Debugger> DebuggerWP;
334 typedef std::shared_ptr<lldb_private::Disassembler> DisassemblerSP;
335 typedef std::unique_ptr<lldb_private::DynamicCheckerFunctions>
336     DynamicCheckerFunctionsUP;
337 typedef std::shared_ptr<lldb_private::DynamicLoader> DynamicLoaderSP;
338 typedef std::unique_ptr<lldb_private::DynamicLoader> DynamicLoaderUP;
339 typedef std::shared_ptr<lldb_private::Event> EventSP;
340 typedef std::shared_ptr<lldb_private::EventData> EventDataSP;
341 typedef std::shared_ptr<lldb_private::EventDataStructuredData>
342     EventDataStructuredDataSP;
343 typedef std::shared_ptr<lldb_private::ExecutionContextRef>
344     ExecutionContextRefSP;
345 typedef std::shared_ptr<lldb_private::ExpressionVariable> ExpressionVariableSP;
346 typedef std::shared_ptr<lldb_private::File> FileSP;
347 typedef std::shared_ptr<lldb_private::Function> FunctionSP;
348 typedef std::shared_ptr<lldb_private::FunctionCaller> FunctionCallerSP;
349 typedef std::shared_ptr<lldb_private::FuncUnwinders> FuncUnwindersSP;
350 typedef std::unique_ptr<lldb_private::GoASTContext> GoASTContextUP;
351 typedef std::shared_ptr<lldb_private::InlineFunctionInfo> InlineFunctionInfoSP;
352 typedef std::shared_ptr<lldb_private::Instruction> InstructionSP;
353 typedef std::shared_ptr<lldb_private::InstrumentationRuntime>
354     InstrumentationRuntimeSP;
355 typedef std::shared_ptr<lldb_private::IOHandler> IOHandlerSP;
356 typedef std::shared_ptr<lldb_private::IOObject> IOObjectSP;
357 typedef std::shared_ptr<lldb_private::IRExecutionUnit> IRExecutionUnitSP;
358 typedef std::shared_ptr<lldb_private::JITLoader> JITLoaderSP;
359 typedef std::unique_ptr<lldb_private::JITLoaderList> JITLoaderListUP;
360 typedef std::shared_ptr<lldb_private::LanguageRuntime> LanguageRuntimeSP;
361 typedef std::shared_ptr<lldb_private::SystemRuntime> SystemRuntimeSP;
362 typedef std::unique_ptr<lldb_private::SystemRuntime> SystemRuntimeUP;
363 typedef std::shared_ptr<lldb_private::LineTable> LineTableSP;
364 typedef std::shared_ptr<lldb_private::Listener> ListenerSP;
365 typedef std::weak_ptr<lldb_private::Listener> ListenerWP;
366 typedef std::shared_ptr<lldb_private::MemoryHistory> MemoryHistorySP;
367 typedef std::shared_ptr<lldb_private::MemoryRegionInfo> MemoryRegionInfoSP;
368 typedef std::unique_ptr<lldb_private::MemoryRegionInfo> MemoryRegionInfoUP;
369 typedef std::shared_ptr<lldb_private::Module> ModuleSP;
370 typedef std::weak_ptr<lldb_private::Module> ModuleWP;
371 typedef std::shared_ptr<lldb_private::ObjectFile> ObjectFileSP;
372 typedef std::weak_ptr<lldb_private::ObjectFile> ObjectFileWP;
373 typedef std::shared_ptr<lldb_private::ObjectFileJITDelegate>
374     ObjectFileJITDelegateSP;
375 typedef std::weak_ptr<lldb_private::ObjectFileJITDelegate>
376     ObjectFileJITDelegateWP;
377 typedef std::unique_ptr<lldb_private::OperatingSystem> OperatingSystemUP;
378 typedef std::shared_ptr<lldb_private::OptionValue> OptionValueSP;
379 typedef std::weak_ptr<lldb_private::OptionValue> OptionValueWP;
380 typedef std::shared_ptr<lldb_private::OptionValueArch> OptionValueArchSP;
381 typedef std::shared_ptr<lldb_private::OptionValueArgs> OptionValueArgsSP;
382 typedef std::shared_ptr<lldb_private::OptionValueArray> OptionValueArraySP;
383 typedef std::shared_ptr<lldb_private::OptionValueBoolean> OptionValueBooleanSP;
384 typedef std::shared_ptr<lldb_private::OptionValueDictionary>
385     OptionValueDictionarySP;
386 typedef std::shared_ptr<lldb_private::OptionValueFileSpec>
387     OptionValueFileSpecSP;
388 typedef std::shared_ptr<lldb_private::OptionValueFileSpecList>
389     OptionValueFileSpecListSP;
390 typedef std::shared_ptr<lldb_private::OptionValueFormat> OptionValueFormatSP;
391 typedef std::shared_ptr<lldb_private::OptionValuePathMappings>
392     OptionValuePathMappingsSP;
393 typedef std::shared_ptr<lldb_private::OptionValueProperties>
394     OptionValuePropertiesSP;
395 typedef std::shared_ptr<lldb_private::OptionValueRegex> OptionValueRegexSP;
396 typedef std::shared_ptr<lldb_private::OptionValueSInt64> OptionValueSInt64SP;
397 typedef std::shared_ptr<lldb_private::OptionValueString> OptionValueStringSP;
398 typedef std::shared_ptr<lldb_private::OptionValueUInt64> OptionValueUInt64SP;
399 typedef std::shared_ptr<lldb_private::OptionValueUUID> OptionValueUUIDSP;
400 typedef std::shared_ptr<lldb_private::Platform> PlatformSP;
401 typedef std::shared_ptr<lldb_private::Process> ProcessSP;
402 typedef std::shared_ptr<lldb_private::ProcessAttachInfo> ProcessAttachInfoSP;
403 typedef std::shared_ptr<lldb_private::ProcessLaunchInfo> ProcessLaunchInfoSP;
404 typedef std::weak_ptr<lldb_private::Process> ProcessWP;
405 typedef std::shared_ptr<lldb_private::Property> PropertySP;
406 typedef std::shared_ptr<lldb_private::RegisterCheckpoint> RegisterCheckpointSP;
407 typedef std::shared_ptr<lldb_private::RegisterContext> RegisterContextSP;
408 typedef std::shared_ptr<lldb_private::RegularExpression> RegularExpressionSP;
409 typedef std::shared_ptr<lldb_private::Queue> QueueSP;
410 typedef std::weak_ptr<lldb_private::Queue> QueueWP;
411 typedef std::shared_ptr<lldb_private::QueueItem> QueueItemSP;
412 typedef std::shared_ptr<lldb_private::REPL> REPLSP;
413 typedef std::shared_ptr<lldb_private::ScriptSummaryFormat>
414     ScriptSummaryFormatSP;
415 typedef std::shared_ptr<lldb_private::ScriptInterpreter> ScriptInterpreterSP;
416 typedef std::unique_ptr<lldb_private::ScriptInterpreter> ScriptInterpreterUP;
417 typedef std::shared_ptr<lldb_private::Section> SectionSP;
418 typedef std::unique_ptr<lldb_private::SectionList> SectionListUP;
419 typedef std::weak_ptr<lldb_private::Section> SectionWP;
420 typedef std::shared_ptr<lldb_private::SectionLoadList> SectionLoadListSP;
421 typedef std::shared_ptr<lldb_private::SearchFilter> SearchFilterSP;
422 typedef std::shared_ptr<lldb_private::Settings> SettingsSP;
423 typedef std::unique_ptr<lldb_private::SourceManager> SourceManagerUP;
424 typedef std::shared_ptr<lldb_private::StackFrame> StackFrameSP;
425 typedef std::unique_ptr<lldb_private::StackFrame> StackFrameUP;
426 typedef std::weak_ptr<lldb_private::StackFrame> StackFrameWP;
427 typedef std::shared_ptr<lldb_private::StackFrameList> StackFrameListSP;
428 typedef std::shared_ptr<lldb_private::StopInfo> StopInfoSP;
429 typedef std::shared_ptr<lldb_private::StoppointLocation> StoppointLocationSP;
430 typedef std::shared_ptr<lldb_private::Stream> StreamSP;
431 typedef std::weak_ptr<lldb_private::Stream> StreamWP;
432 typedef std::shared_ptr<lldb_private::StreamFile> StreamFileSP;
433 typedef std::shared_ptr<lldb_private::StringSummaryFormat>
434     StringTypeSummaryImplSP;
435 typedef std::unique_ptr<lldb_private::StructuredDataImpl> StructuredDataImplUP;
436 typedef std::shared_ptr<lldb_private::StructuredDataPlugin>
437     StructuredDataPluginSP;
438 typedef std::weak_ptr<lldb_private::StructuredDataPlugin>
439     StructuredDataPluginWP;
440 typedef std::shared_ptr<lldb_private::SymbolFile> SymbolFileSP;
441 typedef std::shared_ptr<lldb_private::SymbolFileType> SymbolFileTypeSP;
442 typedef std::weak_ptr<lldb_private::SymbolFileType> SymbolFileTypeWP;
443 typedef std::shared_ptr<lldb_private::SymbolContextSpecifier>
444     SymbolContextSpecifierSP;
445 typedef std::unique_ptr<lldb_private::SymbolVendor> SymbolVendorUP;
446 typedef std::shared_ptr<lldb_private::SyntheticChildren> SyntheticChildrenSP;
447 typedef std::shared_ptr<lldb_private::SyntheticChildrenFrontEnd>
448     SyntheticChildrenFrontEndSP;
449 typedef std::shared_ptr<lldb_private::Target> TargetSP;
450 typedef std::weak_ptr<lldb_private::Target> TargetWP;
451 typedef std::shared_ptr<lldb_private::TargetProperties> TargetPropertiesSP;
452 typedef std::shared_ptr<lldb_private::Thread> ThreadSP;
453 typedef std::weak_ptr<lldb_private::Thread> ThreadWP;
454 typedef std::shared_ptr<lldb_private::ThreadCollection> ThreadCollectionSP;
455 typedef std::shared_ptr<lldb_private::ThreadPlan> ThreadPlanSP;
456 typedef std::shared_ptr<lldb_private::ThreadPlanTracer> ThreadPlanTracerSP;
457 typedef std::shared_ptr<lldb_private::TraceOptions> TraceOptionsSP;
458 typedef std::shared_ptr<lldb_private::Type> TypeSP;
459 typedef std::weak_ptr<lldb_private::Type> TypeWP;
460 typedef std::shared_ptr<lldb_private::TypeCategoryImpl> TypeCategoryImplSP;
461 typedef std::shared_ptr<lldb_private::TypeImpl> TypeImplSP;
462 typedef std::shared_ptr<lldb_private::TypeMemberFunctionImpl>
463     TypeMemberFunctionImplSP;
464 typedef std::shared_ptr<lldb_private::TypeEnumMemberImpl> TypeEnumMemberImplSP;
465 typedef std::shared_ptr<lldb_private::TypeFilterImpl> TypeFilterImplSP;
466 typedef std::shared_ptr<lldb_private::TypeSystem> TypeSystemSP;
467 typedef std::shared_ptr<lldb_private::TypeFormatImpl> TypeFormatImplSP;
468 typedef std::shared_ptr<lldb_private::TypeNameSpecifierImpl>
469     TypeNameSpecifierImplSP;
470 typedef std::shared_ptr<lldb_private::TypeSummaryImpl> TypeSummaryImplSP;
471 typedef std::shared_ptr<lldb_private::TypeSummaryOptions> TypeSummaryOptionsSP;
472 typedef std::shared_ptr<lldb_private::TypeValidatorImpl> TypeValidatorImplSP;
473 #ifndef LLDB_DISABLE_PYTHON
474 typedef std::shared_ptr<lldb_private::ScriptedSyntheticChildren>
475     ScriptedSyntheticChildrenSP;
476 #endif
477 typedef std::shared_ptr<lldb_private::UnixSignals> UnixSignalsSP;
478 typedef std::weak_ptr<lldb_private::UnixSignals> UnixSignalsWP;
479 typedef std::shared_ptr<lldb_private::UnwindAssembly> UnwindAssemblySP;
480 typedef std::shared_ptr<lldb_private::UnwindPlan> UnwindPlanSP;
481 typedef std::shared_ptr<lldb_private::UtilityFunction> UtilityFunctionSP;
482 typedef lldb_private::SharingPtr<lldb_private::ValueObject> ValueObjectSP;
483 typedef std::shared_ptr<lldb_private::Value> ValueSP;
484 typedef std::shared_ptr<lldb_private::ValueList> ValueListSP;
485 typedef std::shared_ptr<lldb_private::Variable> VariableSP;
486 typedef std::shared_ptr<lldb_private::VariableList> VariableListSP;
487 typedef std::shared_ptr<lldb_private::ValueObjectList> ValueObjectListSP;
488 typedef std::shared_ptr<lldb_private::Watchpoint> WatchpointSP;
489
490 } // namespace lldb
491
492 #endif // #if defined(__cplusplus)
493 #endif // LLDB_lldb_forward_h_