aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-11-04 22:49:32 +0000
committerDaniel Jasper <djasper@google.com>2015-11-04 22:49:32 +0000
commit49dbbdb3b375cf7ad6a46e4797ad67c4fa23e90f (patch)
tree1feae8c1c02c8416e3e0f9f7cc6d88dd504e8cb4 /clang/lib/Format/Format.cpp
parent421723cdd81bc94aec1adb96ee9d3b505fe6d3a9 (diff)
downloadllvm-49dbbdb3b375cf7ad6a46e4797ad67c4fa23e90f.zip
llvm-49dbbdb3b375cf7ad6a46e4797ad67c4fa23e90f.tar.gz
llvm-49dbbdb3b375cf7ad6a46e4797ad67c4fa23e90f.tar.bz2
clang-format: Turn on wrapping before "else" for WebKit style.
llvm-svn: 252089
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 4b998c7..c1a3019 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -425,6 +425,7 @@ static FormatStyle expandPresets(const FormatStyle &Style) {
break;
case FormatStyle::BS_WebKit:
Expanded.BraceWrapping.AfterFunction = true;
+ Expanded.BraceWrapping.BeforeElse = true;
break;
default:
break;