]> granicus.if.org Git - clang/commit
python bindings: fix Diagnostics.range iterator
authorTobias Grosser <grosser@fim.uni-passau.de>
Sat, 5 Feb 2011 17:53:51 +0000 (17:53 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Sat, 5 Feb 2011 17:53:51 +0000 (17:53 +0000)
commitf498e00a30ca7fdaf4f49e778862f4cf84ffab2a
tree53ee4bca6737d7fec9c79e1c306128be65b04fad
parentff090ca42aa319e1bbdde38b3940219ea11e07b3
python bindings: fix Diagnostics.range iterator

The iterator did never throw an IndexError. It was therefore not possible
to use it in a normal foreach loop as that loop would never stop.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124953 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/cindex.py
bindings/python/tests/cindex/test_diagnostics.py