summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-11-14 09:02:28 +0000
committerDaniel Jasper <djasper@google.com>2014-11-14 09:02:28 +0000
commitc1404c4993e62113f1e82e72b3000de89c6a020a (patch)
tree18c0db2922c69ab3e907d79880c809f16b658197 /unittests
parent0ba9b5941dfafdf99127b9a9578b9dfac26b8d12 (diff)
clang-format: [Java] No altnerative operator names in Java.
Before: someObject.and (); After: someObject.and(); git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Format/FormatTestJava.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJava.cpp b/unittests/Format/FormatTestJava.cpp
index 650c0af0cb..e8e35c85ef 100644
--- a/unittests/Format/FormatTestJava.cpp
+++ b/unittests/Format/FormatTestJava.cpp
@@ -50,6 +50,10 @@ protected:
}
};
+TEST_F(FormatTestJava, NoAlternativeOperatorNames) {
+ verifyFormat("someObject.and();");
+}
+
TEST_F(FormatTestJava, ClassDeclarations) {
verifyFormat("public class SomeClass {\n"
" private int a;\n"