Before:
A.<B>doSomething();
After:
A.<B>doSomething();
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220285
91177308-0d34-0410-b5e6-
96231b3b80d8
return false;
if (Right.is(tok::hash) && Left.is(tok::identifier) && Left.TokenText == "L")
return false;
+ if (Left.Type == TT_TemplateCloser && Left.MatchingParen &&
+ Left.MatchingParen->Previous &&
+ Left.MatchingParen->Previous->is(tok::period))
+ // A.<B>DoSomething();
+ return false;
return true;
}
verifyFormat("Iterable<?> a;");
verifyFormat("Iterable<?> a;");
verifyFormat("Iterable<? extends SomeObject> a;");
+
+ verifyFormat("A.<B>doSomething();");
}
} // end namespace tooling