diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-04 10:40:26 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-04 10:40:26 +0000 |
commit | 20bc4b0f5c86a76fd188bb7042f1bdd2d4cfee96 (patch) | |
tree | a221dd6fedaabe0be473f3664f68b334459ccd2a /clang/tools | |
parent | ec69a4ece1c1e261e52f0ce29cfcaa0d74d42236 (diff) | |
download | bcm5719-llvm-20bc4b0f5c86a76fd188bb7042f1bdd2d4cfee96.tar.gz bcm5719-llvm-20bc4b0f5c86a76fd188bb7042f1bdd2d4cfee96.zip |
clang-format: Fix vim integration if g:clang_format_binary doesn't exist
llvm-svn: 221254
Diffstat (limited to 'clang/tools')
-rw-r--r-- | clang/tools/clang-format/clang-format.py | 2 |
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 03493560f43..a79205a6dfe 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/tools/clang-format/clang-format.py @@ -26,7 +26,7 @@ import vim # set g:clang_format_path to the path to clang-format if it is not on the path # Change this to the full path if clang-format is not on the path. binary = 'clang-format' -if vim.eval('exists("g:clang_format_path")'): +if vim.eval('exists("g:clang_format_path")') == "1": binary = vim.eval('g:clang_format_path') # Change this to format according to other formatting styles. See the output of |