Improve formatting of function types in template parameters.
Before: A<int * (int)>;
After: A<int *(int)>;
llvm-svn: 177505
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index a940f70..18ba143 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -2265,10 +2265,13 @@
verifyFormat("A<bool()> a;");
verifyFormat("A<SomeType()> a;");
verifyFormat("A<void(*)(int, std::string)> a;");
+ verifyFormat("A<void *(int)>;");
// FIXME: Inconsistent.
verifyFormat("int (*func)(void *);");
verifyFormat("void f() { int(*func)(void *); }");
+
+ verifyGoogleFormat("A<void*(int)>;");
}
TEST_F(FormatTest, BreaksLongDeclarations) {