summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/thread
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2016-05-13 03:57:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2016-05-13 03:57:50 +0000
commitd1ad58b196064acf5afbdc4c8c58e2ad85c7997a (patch)
tree08771a87f67b3057b51e5c1ccf0b13477af4653e /lldb/packages/Python/lldbsuite/test/python_api/thread
parent6d3d746ff565c523f280c857d16cd9a8d994d045 (diff)
downloadbcm5719-llvm-d1ad58b196064acf5afbdc4c8c58e2ad85c7997a.tar.gz
bcm5719-llvm-d1ad58b196064acf5afbdc4c8c58e2ad85c7997a.zip
[ADT] Add an 'llvm::seq' function which produces an iterator range over
a sequence of values. It increments through the values in the half-open range: [Begin, End), producing those values when indirecting the iterator. It should support integers, iterators, and any other type providing these basic arithmetic operations. This came up in the C++ standards committee meeting, and it seemed like a useful construct that LLVM might want as well, and I wanted to understand how easily we could solve it. I suspect this can be used to write simpler counting loops even in LLVM along the lines of: for (int i : seq(0, v.size())) { ... }; As part of this, I had to fix the lack of a proxy object returned from the operator[] in our iterator facade. Differential Revision: http://reviews.llvm.org/D17870 llvm-svn: 269390
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud