aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-03-20 09:53:18 +0000
committerDaniel Jasper <djasper@google.com>2013-03-20 09:53:18 +0000
commit9322aaee900b872c98f8fc10b38a231cb1e9b57a (patch)
treeeea30062006985c3b1546d1f1b52c53d4daf66fc /unittests/Format
parent3309229f77222970cce344eaa6908ad9320d2d82 (diff)
Improve formatting of function types in template parameters.
Before: A<int * (int)>; After: A<int *(int)>; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format')
-rw-r--r--unittests/Format/FormatTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index a940f7092f..18ba143e00 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -2265,10 +2265,13 @@ TEST_F(FormatTest, FormatsFunctionTypes) {
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) {