diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-06-04 21:23:07 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-06-04 21:23:07 +0000 |
commit | 7e8c5e2eb03ccdea1158f9fc194ffb38faf18e36 (patch) | |
tree | 080544e14635089aa2420dc7ea735ace2aed050b /tools | |
parent | 211d544fb1882f9faaeea03378942a40696e477f (diff) | |
download | clang-7e8c5e2eb03ccdea1158f9fc194ffb38faf18e36.tar.gz |
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: https://llvm.org/svn/llvm-project/cfe/trunk@239098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/clang-format/clang-format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py index baa6cdffbe..49ca773b04 100644 --- a/tools/clang-format/clang-format.py +++ b/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)) |