bracket
Before:
public Foo<X, Y> [] foos;
After:
public Foo<X, Y>[] foos;
Patch by Harry Terkelsen. Thank you!
llvm-svn: 222283
Left.MatchingParen->Previous->is(tok::period))
// A.<B>DoSomething();
return false;
+ if (Left.Type == TT_TemplateCloser && Right.is(tok::l_square))
+ return false;
return true;
}
verifyFormat("public static <R> ArrayList<R> get() {\n}");
verifyFormat("<T extends B> T getInstance(Class<T> type);");
verifyFormat("Function<F, ? extends T> function;");
+
+ verifyFormat("private Foo<X, Y>[] foos;");
+ verifyFormat("Foo<X, Y>[] foos = this.foos;");
}
TEST_F(FormatTestJava, StringConcatenation) {