diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-12-08 19:19:08 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-12-08 19:19:08 +0000 |
commit | b340e6bb153e53ac4ecf5b48b590c516245265df (patch) | |
tree | bcb72b06ae02e6ff807392a4fec5eb9fb6dfd19e /libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun1.pass.cpp | |
parent | 174305b94e484550efcf54e6ff46396585729480 (diff) | |
download | bcm5719-llvm-b340e6bb153e53ac4ecf5b48b590c516245265df.tar.gz bcm5719-llvm-b340e6bb153e53ac4ecf5b48b590c516245265df.zip |
Add more docstring for the lldb_iter() utility function which provides a compact
way of iterating through an aggregate data structure. The added example usage
is from an actual use in test/foundation/TestSymbolTable.py:
2. Pass a container of aggregate which provides APIs to get to the size and
the element of the aggregate:
# Module is a container of symbol table
module = target.FindModule(filespec)
for symbol in lldb_iter(module, 'GetNumSymbols', 'GetSymbolAtIndex'):
name = symbol.GetName()
...
llvm-svn: 121271
Diffstat (limited to 'libcxx/test/utilities/function.objects/function.pointer.adaptors/ptr_fun1.pass.cpp')
0 files changed, 0 insertions, 0 deletions