[Lldb-commits] [PATCH] D159017: [lldb/docs] Silence warnings when generating website

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 28 14:23:44 PDT 2023


mib created this revision.
mib added reviewers: JDevlieghere, bulbazord, gkistanova.
mib added a project: LLDB.
Herald added a subscriber: Michael137.
Herald added a project: All.
mib requested review of this revision.
Herald added a subscriber: lldb-commits.

This patch does various things to silence the warnings that show up when
generating the website documentation.

First, this patch adds the missing definition for special member methods
in every SBAPI class. If the class cannot implement one of the special
member method, we just define it as a null operation (pass).

This should fix the following warnings:

  WARNING: missing attribute __int__ in object lldb.SB*
  WARNING: missing attribute __len__ in object lldb.SB*
  WARNING: missing attribute __hex__ in object lldb.SB*
  WARNING: missing attribute __oct__ in object lldb.SB*
  WARNING: missing attribute __iter__ in object lldb.SB*

Then, it un-skips the various `static` methods that we didn't generate
the methods for, since it's not necessary thanks to the automod-api module.

Finally, this comments out the `_static` directory in the sphinx config,
since we don't need it anymore.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D159017

Files:
  lldb/bindings/interface/SBAddressExtensions.i
  lldb/bindings/interface/SBAttachInfoExtensions.i
  lldb/bindings/interface/SBBlockExtensions.i
  lldb/bindings/interface/SBBreakpointExtensions.i
  lldb/bindings/interface/SBBreakpointListExtensions.i
  lldb/bindings/interface/SBBreakpointLocationExtensions.i
  lldb/bindings/interface/SBBreakpointNameExtensions.i
  lldb/bindings/interface/SBBroadcastExtensions.i
  lldb/bindings/interface/SBCommandInterpreterExtensions.i
  lldb/bindings/interface/SBCommandInterpreterRunOptionsExtensions.i
  lldb/bindings/interface/SBCommandReturnObjectExtensions.i
  lldb/bindings/interface/SBCommunicationExtensions.i
  lldb/bindings/interface/SBCompileUnitExtensions.i
  lldb/bindings/interface/SBDataExtensions.i
  lldb/bindings/interface/SBDebuggerExtensions.i
  lldb/bindings/interface/SBDeclarationExtensions.i
  lldb/bindings/interface/SBEnvironmentExtensions.i
  lldb/bindings/interface/SBErrorExtensions.i
  lldb/bindings/interface/SBEventExtensions.i
  lldb/bindings/interface/SBExecutionContextExtensions.i
  lldb/bindings/interface/SBExpressionOptionsExtensions.i
  lldb/bindings/interface/SBFileExtensions.i
  lldb/bindings/interface/SBFileSpecExtensions.i
  lldb/bindings/interface/SBFileSpecListExtensions.i
  lldb/bindings/interface/SBFrameExtensions.i
  lldb/bindings/interface/SBFunctionExtensions.i
  lldb/bindings/interface/SBHostOSExtensions.i
  lldb/bindings/interface/SBInstructionExtensions.i
  lldb/bindings/interface/SBInstructionListExtensions.i
  lldb/bindings/interface/SBLanguageRuntimeExtensions.i
  lldb/bindings/interface/SBLaunchInfoExtensions.i
  lldb/bindings/interface/SBLineEntryExtensions.i
  lldb/bindings/interface/SBListenerExtensions.i
  lldb/bindings/interface/SBMemoryRegionInfoExtensions.i
  lldb/bindings/interface/SBMemoryRegionInfoListExtensions.i
  lldb/bindings/interface/SBModuleExtensions.i
  lldb/bindings/interface/SBModuleSpecExtensions.i
  lldb/bindings/interface/SBModuleSpecListExtensions.i
  lldb/bindings/interface/SBPlatformConnectOptionsExtensions.i
  lldb/bindings/interface/SBPlatformExtensions.i
  lldb/bindings/interface/SBPlatformShellCommandExtensions.i
  lldb/bindings/interface/SBProcessExtensions.i
  lldb/bindings/interface/SBProcessInfoExtensions.i
  lldb/bindings/interface/SBQueueExtensions.i
  lldb/bindings/interface/SBQueueItemExtensions.i
  lldb/bindings/interface/SBReproducerExtensions.i
  lldb/bindings/interface/SBScriptObjectExtensions.i
  lldb/bindings/interface/SBSectionExtensions.i
  lldb/bindings/interface/SBSourceManagerExtensions.i
  lldb/bindings/interface/SBStreamExtensions.i
  lldb/bindings/interface/SBStringListExtensions.i
  lldb/bindings/interface/SBStructuredDataExtensions.i
  lldb/bindings/interface/SBSymbolContextExtensions.i
  lldb/bindings/interface/SBSymbolContextListExtensions.i
  lldb/bindings/interface/SBSymbolExtensions.i
  lldb/bindings/interface/SBTargetExtensions.i
  lldb/bindings/interface/SBThreadCollectionExtensions.i
  lldb/bindings/interface/SBThreadExtensions.i
  lldb/bindings/interface/SBThreadPlanExtensions.i
  lldb/bindings/interface/SBTraceCursorExtensions.i
  lldb/bindings/interface/SBTraceExtensions.i
  lldb/bindings/interface/SBTypeCategoryExtensions.i
  lldb/bindings/interface/SBTypeEnumMemberExtensions.i
  lldb/bindings/interface/SBTypeExtensions.i
  lldb/bindings/interface/SBTypeFilterExtensions.i
  lldb/bindings/interface/SBTypeFormatExtensions.i
  lldb/bindings/interface/SBTypeNameSpecifierExtensions.i
  lldb/bindings/interface/SBTypeSummaryExtensions.i
  lldb/bindings/interface/SBTypeSummaryOptionsExtensions.i
  lldb/bindings/interface/SBTypeSyntheticExtensions.i
  lldb/bindings/interface/SBUnixSignalsExtensions.i
  lldb/bindings/interface/SBValueExtensions.i
  lldb/bindings/interface/SBValueListExtensions.i
  lldb/bindings/interface/SBVariablesOptionsExtensions.i
  lldb/bindings/interface/SBWatchpointExtensions.i
  lldb/bindings/interfaces.swig
  lldb/bindings/python/python-extensions.swig
  lldb/bindings/python/python.swig
  lldb/docs/conf.py
  lldb/docs/python_api.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159017.554047.patch
Type: text/x-patch
Size: 73963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230828/a4960242/attachment-0001.bin>


More information about the lldb-commits mailing list