hanchenye-llvm-project/lldb
Pavel Labath 4da5a1dbab modify-python-lldb.py: clean up __iter__ and __len__ support
Summary:
Instead of modifying the swig-generated code, just add the appropriate
methods to the interface files in order to get the swig to do the
generation for us.

This is a straight-forward move from the python script to the interface
files. The single class which has nontrivial handling in the script
(SBModule) has been left for a separate patch.

For the cases where I did not find any tests exercising the
iteration/length methods (i.e., no tests failed after I stopped emitting
them), I tried to add basic tests for that functionality.

Reviewers: zturner, jingham, amccarth

Subscribers: jdoerfert, lldb-commits

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

llvm-svn: 357572
2019-04-03 11:48:38 +00:00
..
cmake [Cmake] Unify python variables 2019-03-29 17:35:42 +00:00
docs Don't abort() in lldb_assert and document why. 2019-03-29 16:12:27 +00:00
examples python 2/3 compat: commands vs subprocess 2019-03-26 14:46:15 +00:00
include/lldb Fix typo; NFC 2019-04-02 17:02:21 +00:00
lit [lit] Use 10 minute timeout by default. 2019-04-03 01:26:41 +00:00
lldb.xcodeproj [Platform] Remove Kalimba Platform 2019-03-27 16:23:50 +00:00
lldb.xcworkspace Remove accidentally commited file in xcshareddata 2019-02-05 23:35:01 +00:00
packages/Python/lldbsuite modify-python-lldb.py: clean up __iter__ and __len__ support 2019-04-03 11:48:38 +00:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts modify-python-lldb.py: clean up __iter__ and __len__ support 2019-04-03 11:48:38 +00:00
source Avoid macro redefinition error if HAVE_LIBCOMPRESSION 2019-04-03 01:16:54 +00:00
test [CMake] Make lldb-test-deps a dependency of check-lldb 2019-02-13 20:51:13 +00:00
third_party/Python/module [lldb/thirdparty] Remove unneeded files, asked by Jonas. 2019-03-12 20:41:36 +00:00
tools [lldb-server] Use llgs namespace to avoid conflicts with Win32 API 2019-04-02 17:10:12 +00:00
unittests [CMake] Only the Python scirpt interpreter should link against Python. 2019-04-01 22:03:04 +00:00
utils [lldb-dotest] Print dotest.py invocation. 2019-04-03 01:26:38 +00:00
www Don't abort() in lldb_assert and document why. 2019-03-29 16:12:27 +00:00
.arcconfig
.clang-format
.gitignore
CMakeLists.txt Add lldb-vscode as a dependency of lldb tests. 2019-03-26 18:36:44 +00:00
CODE_OWNERS.txt Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
INSTALL.txt
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py