[clang-format-vim] Support vim linked against py3
authorLuke Drummond <luke.drummond@codeplay.com>
Wed, 31 Aug 2016 13:36:36 +0000 (13:36 +0000)
committerLuke Drummond <luke.drummond@codeplay.com>
Wed, 31 Aug 2016 13:36:36 +0000 (13:36 +0000)
commitff7c77f90675ae0e2289cd1857b02db0e2549509
treec7b0d26022b07db9a541b61d8d7fdc5c6d572609
parent3c1137c639c37b9e07dd58af10e01486d07bf755
[clang-format-vim] Support vim linked against py3

clang-format.py previously only worked in vim compiled against python2.

This patch adds the necessary syntax changes to make this work with vim
linked against python3, which is now shipped by default for at least Ubuntu16 and Arch.

Differential Revision: https://reviews.llvm.org/D23319

Subscribers: cfe-commits
llvm-svn: 280240
clang/tools/clang-format/clang-format.py