summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/support/gmodules.py
diff options
context:
space:
mode:
authorMichael Kruse <llvm@meinersbur.de>2018-12-10 15:16:37 +0000
committerMichael Kruse <llvm@meinersbur.de>2018-12-10 15:16:37 +0000
commit157a355f3b3e7c82eb2632882974f85345514094 (patch)
tree10d19a71a49f3720c7ee1eb864d21cede8eb9b0b /lldb/packages/Python/lldbsuite/support/gmodules.py
parent84e89ff06f74e85ac7a7c677d60f14e9c4e07865 (diff)
downloadbcm5719-llvm-157a355f3b3e7c82eb2632882974f85345514094.tar.gz
bcm5719-llvm-157a355f3b3e7c82eb2632882974f85345514094.zip
Use zip_longest for iterator range comparisons. NFC.
Use zip_longest in two locations that compare iterator ranges. zip_longest allows the iteration using a range-based for-loop and to be symmetric over both ranges instead of prioritizing one over the other. In that latter case code have to handle the case that the first is longer than the second, the second is longer than the first, and both are of the same length, which must partially be checked after the loop. With zip_longest, this becomes an element comparison within the loop like the comparison of the elements themselves. The symmetry makes it clearer that neither the first and second iterators are handled differently. The iterators are not event used directly anymore, just the ranges. Differential Revision: https://reviews.llvm.org/D55468 llvm-svn: 348762
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support/gmodules.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud