aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2012-12-10 18:59:13 +0000
committerDaniel Jasper <djasper@google.com>2012-12-10 18:59:13 +0000
commit8b39c6693aadd30f77ac039de69130c22e066994 (patch)
tree9927829344c1cd7732aba79260860e4e0c2b0a8a /unittests/Format/FormatTest.cpp
parent23add332da632c3cee7638b9d72b4ba8df67541c (diff)
Addi formatting tests for pointer template parameters.
Fix spacing before ",". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 79cefc4663..d70442cebf 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -478,7 +478,17 @@ TEST_F(FormatTest, UnderstandsUsesOfStar) {
verifyFormat("int a = b * *c;");
verifyFormat("int main(int argc, char **argv) {\n}");
+ // FIXME: Is this desired for LLVM? Fix if not.
+ verifyFormat("A<int *> a;");
+ verifyFormat("A<int **> a;");
+ verifyFormat("A<int *, int *> a;");
+ verifyFormat("A<int **, int **> a;");
+
verifyGoogleFormat("int main(int argc, char** argv) {\n}");
+ verifyGoogleFormat("A<int*> a;");
+ verifyGoogleFormat("A<int**> a;");
+ verifyGoogleFormat("A<int*, int*> a;");
+ verifyGoogleFormat("A<int**, int**> a;");
}
TEST_F(FormatTest, LineStartsWithSpecialCharacter) {