r252089 - clang-format: Turn on wrapping before "else" for WebKit style.
Daniel Jasper via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 14:49:33 PST 2015
Author: djasper
Date: Wed Nov 4 16:49:32 2015
New Revision: 252089
URL: http://llvm.org/viewvc/llvm-project?rev=252089&view=rev
Log:
clang-format: Turn on wrapping before "else" for WebKit style.
Modified:
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=252089&r1=252088&r2=252089&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Wed Nov 4 16:49:32 2015
@@ -425,6 +425,7 @@ static FormatStyle expandPresets(const F
break;
case FormatStyle::BS_WebKit:
Expanded.BraceWrapping.AfterFunction = true;
+ Expanded.BraceWrapping.BeforeElse = true;
break;
default:
break;
More information about the cfe-commits
mailing list