[Lldb-commits] [lldb] r366471 - [swig] Enable autodoc feature

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 18 10:40:30 PDT 2019


Author: jdevlieghere
Date: Thu Jul 18 10:40:30 2019
New Revision: 366471

URL: http://llvm.org/viewvc/llvm-project?rev=366471&view=rev
Log:
[swig] Enable autodoc feature

This patch enables the SWIG `autodoc` feature so that the generated
Python reference [1] includes class properties.

[1] https://lldb.llvm.org/python_reference/index.html

Modified:
    lldb/trunk/scripts/Python/prepare_binding_Python.py

Modified: lldb/trunk/scripts/Python/prepare_binding_Python.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/prepare_binding_Python.py?rev=366471&r1=366470&r2=366471&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/prepare_binding_Python.py (original)
+++ lldb/trunk/scripts/Python/prepare_binding_Python.py Thu Jul 18 10:40:30 2019
@@ -204,6 +204,7 @@ def do_swig_rebuild(options, dependency_
             "-c++",
             "-shadow",
             "-python",
+            "-features autodoc"
             "-threads",
             "-I" + os.path.normpath(os.path.join(options.src_root, "include")),
             "-I" + os.path.curdir,




More information about the lldb-commits mailing list