]> granicus.if.org Git - clang/commitdiff
clang-format: Fix style default for WebKit and Linux styles.
authorDaniel Jasper <djasper@google.com>
Mon, 14 Dec 2015 08:24:16 +0000 (08:24 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 14 Dec 2015 08:24:16 +0000 (08:24 +0000)
Brought up in codereviews:
http://reviews.llvm.org/D15445
http://reviews.llvm.org/D15485

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255484 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/Format.cpp

index d66145fd8851ee7f68f3441ecf3df9f8d8725f6c..896ecad60f5d822016165f0ae21c31447dfef18d 100644 (file)
@@ -396,7 +396,6 @@ static FormatStyle expandPresets(const FormatStyle &Style) {
     Expanded.BraceWrapping.AfterClass = true;
     Expanded.BraceWrapping.AfterFunction = true;
     Expanded.BraceWrapping.AfterNamespace = true;
-    Expanded.BraceWrapping.BeforeElse = true;
     break;
   case FormatStyle::BS_Mozilla:
     Expanded.BraceWrapping.AfterClass = true;
@@ -427,7 +426,6 @@ static FormatStyle expandPresets(const FormatStyle &Style) {
     break;
   case FormatStyle::BS_WebKit:
     Expanded.BraceWrapping.AfterFunction = true;
-    Expanded.BraceWrapping.BeforeElse = true;
     break;
   default:
     break;