summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-11-04 10:40:26 +0000
committerDaniel Jasper <djasper@google.com>2014-11-04 10:40:26 +0000
commit20bc4b0f5c86a76fd188bb7042f1bdd2d4cfee96 (patch)
treea221dd6fedaabe0be473f3664f68b334459ccd2a /clang/tools
parentec69a4ece1c1e261e52f0ce29cfcaa0d74d42236 (diff)
downloadbcm5719-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.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 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
OpenPOWER on IntegriCloud