llvm-project/lldb/scripts/interface
Pavel Labath 7f5237bccc Add "operator bool" to SB APIs
Summary:
Our python version of the SB API has (the python equivalent of)
operator bool, but the C++ version doesn't.

This is because our python operators are added by modify-python-lldb.py,
which performs postprocessing on the swig-generated interface files.

In this patch, I add the "operator bool" to all SB classes which have an
IsValid method (which is the same logic used by modify-python-lldb.py).
This way, we make the two interfaces more constent, and it allows us to
rely on swig's automatic syntesis of python __nonzero__ methods instead
of doing manual fixups.

Reviewers: zturner, jingham, clayborg, jfb, serge-sans-paille

Subscribers: jdoerfert, lldb-commits

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

llvm-svn: 355824
2019-03-11 13:58:46 +00:00
..
SBAddress.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBAttachInfo.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBBlock.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBBreakpoint.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBBreakpointLocation.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBBreakpointName.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBBroadcaster.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBCommandInterpreter.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBCommandReturnObject.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBCommunication.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBCompileUnit.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBData.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBDebugger.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBDeclaration.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBError.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBEvent.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBExecutionContext.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBExpressionOptions.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBFileSpec.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBFileSpecList.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBFrame.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBFunction.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBHostOS.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBInstruction.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBInstructionList.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBLanguageRuntime.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBLaunchInfo.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBLineEntry.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBListener.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBMemoryRegionInfo.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBMemoryRegionInfoList.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBModule.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBModuleSpec.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBPlatform.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBProcess.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBProcessInfo.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBQueue.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBQueueItem.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBSection.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBSourceManager.i Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SBStream.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBStringList.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBStructuredData.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBSymbol.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBSymbolContext.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBSymbolContextList.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTarget.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBThread.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBThreadCollection.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBThreadPlan.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTrace.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTraceOptions.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBType.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeCategory.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeEnumMember.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeFilter.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeFormat.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeNameSpecifier.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeSummary.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBTypeSynthetic.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBUnixSignals.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBValue.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBValueList.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBVariablesOptions.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00
SBWatchpoint.i Add "operator bool" to SB APIs 2019-03-11 13:58:46 +00:00