Before:
< T extends B > T getInstance(Class<T> type);
After:
<T extends B> T getInstance(Class<T> type);
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221124
91177308-0d34-0410-b5e6-
96231b3b80d8
return false;
break;
case tok::less:
- if (Tok->Previous && !Tok->Previous->Tok.isLiteral() && parseAngle())
+ if ((!Tok->Previous || !Tok->Previous->Tok.isLiteral()) && parseAngle())
Tok->Type = TT_TemplateOpener;
else {
Tok->Type = TT_BinaryOperator;
"public Map<String, ?> getAll() {\n}");
verifyFormat("public static <R> ArrayList<R> get() {\n}");
+ verifyFormat("<T extends B> T getInstance(Class<T> type);");
}
TEST_F(FormatTestJava, StringConcatenation) {