diff options
Diffstat (limited to 'tools/clang-format/clang-format.py')
-rw-r--r-- | tools/clang-format/clang-format.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py index 56a6e5d..49ca773 100644 --- a/tools/clang-format/clang-format.py +++ b/tools/clang-format/clang-format.py @@ -85,6 +85,8 @@ 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.get('IncompleteFormat'): + print 'clang-format: incomplete (syntax errors)' vim.command('goto %d' % (output['Cursor'] + 1)) main() |