Fix terrible python goof in clang-format.py which broke my vim
integration.
Nothing is more important in life than clang-format integration with
vim. ;]
git-svn-id: svn://svn.chromium.org/llvm-project/cfe/trunk/tools/clang-format@239098 0b72dbe1-c17f-4bc7-b9db-2b4152be0356
diff --git a/clang-format.py b/clang-format.py
index baa6cdf..49ca773 100644
--- a/clang-format.py
+++ b/clang-format.py
@@ -85,7 +85,7 @@
for op in reversed(sequence.get_opcodes()):
if op[0] is not 'equal':
vim.current.buffer[op[1]:op[2]] = lines[op[3]:op[4]]
- if output['IncompleteFormat']:
+ if output.get('IncompleteFormat'):
print 'clang-format: incomplete (syntax errors)'
vim.command('goto %d' % (output['Cursor'] + 1))