summaryrefslogtreecommitdiffstats
path: root/clang/tools
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-04-17 07:59:19 +0000
committerDaniel Jasper <djasper@google.com>2015-04-17 07:59:19 +0000
commit0fe44465c32b9b81979afeba6db448f27cc42f05 (patch)
tree7a74a9b1b9f899e694d0bb3f3b8d4899cfd8aa87 /clang/tools
parent2ccba83401f656f5e0fd1e170a9527620061f57a (diff)
downloadbcm5719-llvm-0fe44465c32b9b81979afeba6db448f27cc42f05.tar.gz
bcm5719-llvm-0fe44465c32b9b81979afeba6db448f27cc42f05.zip
clang-format: Add default fallback style.
Thanks to Michael Schlottke. llvm-svn: 235162
Diffstat (limited to 'clang/tools')
-rw-r--r--clang/tools/clang-format/clang-format.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py
index b07160eea6c..56a6e5d86bf 100644
--- a/clang/tools/clang-format/clang-format.py
+++ b/clang/tools/clang-format/clang-format.py
@@ -34,6 +34,7 @@ if vim.eval('exists("g:clang_format_path")') == "1":
# a '.clang-format' or '_clang-format' file to indicate the style that should be
# used.
style = 'file'
+fallback_style = None
if vim.eval('exists("g:clang_format_fallback_style")') == "1":
fallback_style = vim.eval('g:clang_format_fallback_style')
OpenPOWER on IntegriCloud