mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
clang-format: [Java] Don't force break before generic type method.
Before:
Foo.bar()
.<X>
baz();
After:
Foo.bar()
.<X>baz();
Patch by Harry Terkelsen.
llvm-svn: 222423
This commit is contained in:
@@ -234,6 +234,13 @@ TEST_F(FormatTestJava, Generics) {
|
||||
|
||||
verifyFormat("private Foo<X, Y>[] foos;");
|
||||
verifyFormat("Foo<X, Y>[] foos = this.foos;");
|
||||
|
||||
verifyFormat(
|
||||
"SomeLoooooooooooooooooooooongType name =\n"
|
||||
" SomeType.foo(someArgument)\n"
|
||||
" .<X>method()\n"
|
||||
" .aaaaaaaaaaaaaaaaaaa()\n"
|
||||
" .aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa();");
|
||||
}
|
||||
|
||||
TEST_F(FormatTestJava, StringConcatenation) {
|
||||
|
||||
Reference in New Issue
Block a user