llvm-project/lldb/source/API
Jim Ingham cfb96d845a Convert functions that were returning BreakpointOption * to BreakpointOption &.
This is an NFC cleanup.

Many of the API's that returned BreakpointOptions always returned valid ones.
Internally the BreakpointLocations usually have null BreakpointOptions, since they
use their owner's options until an option is set specifically on the location.
So the original code used pointers & unique_ptr everywhere for consistency.
But that made the code hard to reason about from the outside.

This patch changes the code so that everywhere an API is guaranteed to
return a non-null BreakpointOption, it returns it as a reference to make
that clear.

It also changes the Breakpoint to hold a BreakpointOption
member where it previously had a UP.  Since we were always filling the UP
in the Breakpoint constructor, having the UP wasn't helping anything.

Differential Revision: https://reviews.llvm.org/D104162
2021-06-15 14:34:02 -07:00
..
CMakeLists.txt [lldb, win] Remove obsolete workaround for MSVC and python libs 2021-06-10 11:13:38 -07:00
SBAddress.cpp [lldb] Pass reference instead of pointer in protected SBAddress methods. 2020-09-25 11:47:05 -07:00
SBAttachInfo.cpp
SBBlock.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBBreakpoint.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
SBBreakpointLocation.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
SBBreakpointName.cpp Convert functions that were returning BreakpointOption * to BreakpointOption &. 2021-06-15 14:34:02 -07:00
SBBreakpointOptionCommon.cpp
SBBreakpointOptionCommon.h
SBBroadcaster.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBCommandInterpreter.cpp Reland "[lldb] Make CommandInterpreter's execution context the same as debugger's one" 2021-02-08 15:09:09 +03:00
SBCommandInterpreterRunOptions.cpp [lldb/API] Add CommandInterpreter::{Get,Set}PrintErrors to SBAPI (NFC) 2021-03-05 19:33:33 +01:00
SBCommandReturnObject.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBCommunication.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBCompileUnit.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBData.cpp
SBDebugger.cpp [lldb][NFC] Remove unused var in SBDebugger::GetInternalVariableValue 2021-05-31 11:19:02 +02:00
SBDeclaration.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
SBEnvironment.cpp [lldb/Reproducers] Add instrumentation to SBEnvironment 2020-05-20 13:02:20 -07:00
SBError.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
SBEvent.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBExecutionContext.cpp
SBExpressionOptions.cpp [lldb/API] Add missing LLDB_REGISTER_METHOD macros 2020-04-06 16:09:40 -07:00
SBFile.cpp
SBFileSpec.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
SBFileSpecList.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
SBFrame.cpp [lldb] Pass reference instead of pointer in protected SBAddress methods. 2020-09-25 11:47:05 -07:00
SBFunction.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBHostOS.cpp [lldb] Provide GetHomeDirectory wrapper in Host::FileSystem (NFC) 2020-08-20 14:07:05 -07:00
SBInstruction.cpp [lldb] Pass reference instead of pointer in protected SBAddress methods. 2020-09-25 11:47:05 -07:00
SBInstructionList.cpp
SBLanguageRuntime.cpp [lldb][NFC] Remove all uses of StringRef::withNullAsEmpty in LLDB 2021-05-18 09:41:20 +02:00
SBLaunchInfo.cpp [lldb/Commands] Add command options for ScriptedProcess to ProcessLaunch 2021-03-23 18:24:47 +01:00
SBLineEntry.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
SBListener.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBMemoryRegionInfo.cpp
SBMemoryRegionInfoList.cpp
SBModule.cpp [lldb] Add missing LLDB_REGISTER for GarbageCollectAllocatedModules 2020-08-17 10:14:41 -07:00
SBModuleSpec.cpp
SBPlatform.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBProcess.cpp [lldb][NFC] Use C++ versions of the deprecated C standard library headers 2021-05-26 12:46:12 +02:00
SBProcessInfo.cpp Revert "[LLDB/API] Expose args and env from SBProcessInfo." 2021-06-05 15:50:49 +07:00
SBQueue.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBQueueItem.cpp [lldb] Pass reference instead of pointer in protected SBAddress methods. 2020-09-25 11:47:05 -07:00
SBReproducer.cpp [lldb] Move copying of files into reproducer out of process 2020-10-23 12:33:54 -07:00
SBReproducerPrivate.h [lldb] Extract reproducer providers & co into their own header. 2020-08-22 10:04:27 -07:00
SBSection.cpp [lldb] Switch Section-dumping code to raw_ostream 2020-05-14 11:59:18 +02:00
SBSourceManager.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBStream.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBStringList.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBStructuredData.cpp [lldb] Handle missing SBStructuredData copy assignment cases 2021-05-05 15:12:03 -07:00
SBSymbol.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBSymbolContext.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBSymbolContextList.cpp
SBTarget.cpp Target::ReadMemory read from read-only binary file Section, not memory 2021-04-16 16:13:07 -07:00
SBThread.cpp [lldb] Refactor argument group by SourceLocationSpec (NFCI) 2021-05-04 23:04:31 +00:00
SBThreadCollection.cpp
SBThreadPlan.cpp Add a setting to force stepping to always run all threads. 2020-08-07 14:47:31 -07:00
SBTrace.cpp [trace][intel-pt] Implement trace start and trace stop 2021-03-30 17:31:37 -07:00
SBTraceOptions.cpp
SBType.cpp [lldb] Add SBType::GetEnumerationIntegerType method 2020-12-22 10:08:22 -08:00
SBTypeCategory.cpp [lldb][NFC] Remove all uses of StringRef::withNullAsEmpty in LLDB 2021-05-18 09:41:20 +02:00
SBTypeEnumMember.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBTypeFilter.cpp
SBTypeFormat.cpp
SBTypeNameSpecifier.cpp
SBTypeSummary.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBTypeSynthetic.cpp
SBUnixSignals.cpp
SBValue.cpp [lldb] Move and clean-up the Declaration class (NFC) 2021-05-04 16:34:44 +00:00
SBValueList.cpp [lldb/API] Use std::make_unique<> (NFC) 2020-06-24 16:29:30 -07:00
SBVariablesOptions.cpp [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
SBWatchpoint.cpp
SystemInitializerFull.cpp [lldb] Prevent that LLDB randomly crashes in CommandLineParser::addOption by initializing LLVM's command line parser 2021-04-01 20:17:54 +02:00
SystemInitializerFull.h
Utils.h
liblldb-private.exports
liblldb.exports
liblldb.xcode.exports