From e8eba3716c00d92ae772426ee4e9412f92e5562c Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 25 Sep 2017 22:42:49 +0000 Subject: clang-format/java: Always put space after `assert` keyword. Previously, it was missing if the expression after the assert started with a (. llvm-svn: 314172 --- clang/unittests/Format/FormatTestJava.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/unittests/Format/FormatTestJava.cpp') diff --git a/clang/unittests/Format/FormatTestJava.cpp b/clang/unittests/Format/FormatTestJava.cpp index 335c944..408fdaa 100644 --- a/clang/unittests/Format/FormatTestJava.cpp +++ b/clang/unittests/Format/FormatTestJava.cpp @@ -412,6 +412,7 @@ TEST_F(FormatTestJava, SynchronizedKeyword) { TEST_F(FormatTestJava, AssertKeyword) { verifyFormat("assert a && b;"); + verifyFormat("assert (a && b);"); } TEST_F(FormatTestJava, PackageDeclarations) { -- cgit v1.1