Index: lib/Format/Format.cpp =================================================================== --- lib/Format/Format.cpp +++ lib/Format/Format.cpp @@ -396,7 +396,7 @@ Expanded.BraceWrapping.AfterClass = true; Expanded.BraceWrapping.AfterFunction = true; Expanded.BraceWrapping.AfterNamespace = true; - Expanded.BraceWrapping.BeforeElse = true; + Expanded.BraceWrapping.BeforeElse = false; break; case FormatStyle::BS_Mozilla: Expanded.BraceWrapping.AfterClass = true; Index: unittests/Format/FormatTest.cpp =================================================================== --- unittests/Format/FormatTest.cpp +++ unittests/Format/FormatTest.cpp @@ -9003,6 +9003,8 @@ " if (true) {\n" " a();\n" " b();\n" + " } else {\n" + " c();\n" " }\n" " }\n" " void g() { return; }\n"