commit | b1614041ac297f2e1fca359e9b77291ae5006832 | [log] [tgz] |
---|---|---|
author | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | Mon Jul 09 11:57:30 2012 +0000 |
committer | Arnaud A. de Grandmaison <arnaud.adegm@gmail.com> | Mon Jul 09 11:57:30 2012 +0000 |
tree | 3d2014530024897af7bae3bd3bf3699ae1f01efa | |
parent | 4990890fc9428f98bef90ba349203a648c592778 [diff] [blame] |
[cindex.py] fix infinite iteration of compilation database CompileCommands Patch by David Röthlisberger git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159926 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/bindings/python/clang/cindex.py b/bindings/python/clang/cindex.py index afbfe3d..0aea466 100644 --- a/bindings/python/clang/cindex.py +++ b/bindings/python/clang/cindex.py
@@ -2162,7 +2162,7 @@ def __getitem__(self, i): cc = CompileCommands_getCommand(self.ccmds, i) - if cc is None: + if not cc: raise IndexError return CompileCommand(cc, self)