summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-format/clang-format.py
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-06-04 21:23:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-06-04 21:23:07 +0000
commitc925a905f7c73899bb17405a3a9f04b681a96cf8 (patch)
treefeba94ccc1bceec07bb2e85cddaf1c90e876c660 /clang/tools/clang-format/clang-format.py
parentf99fe00afcd50b1d3538d91c011673373e174839 (diff)
downloadbcm5719-llvm-c925a905f7c73899bb17405a3a9f04b681a96cf8.tar.gz
bcm5719-llvm-c925a905f7c73899bb17405a3a9f04b681a96cf8.zip
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. ;] llvm-svn: 239098
Diffstat (limited to 'clang/tools/clang-format/clang-format.py')
-rw-r--r--clang/tools/clang-format/clang-format.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py
index baa6cdffbe3..49ca773b049 100644
--- a/clang/tools/clang-format/clang-format.py
+++ b/clang/tools/clang-format/clang-format.py
@@ -85,7 +85,7 @@ def main():
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))
OpenPOWER on IntegriCloud