summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2017-09-25 22:42:49 +0000
committerNico Weber <nicolasweber@gmx.de>2017-09-25 22:42:49 +0000
commit92ed6b0f9194caa68485a6fc901113fb7c21e238 (patch)
treeed199617f24e872cfd883764ca50a181d0bf6f1b /unittests
parent156b6794501ad194264c3f7fc5e3c3c18d2f1e50 (diff)
clang-format/java: Always put space after `assert` keyword.
Previously, it was missing if the expression after the assert started with a (. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Format/FormatTestJava.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJava.cpp b/unittests/Format/FormatTestJava.cpp
index 335c944f68..408fdaa85a 100644
--- a/unittests/Format/FormatTestJava.cpp
+++ b/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) {