aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-02-13 04:13:13 +0000
committerNico Weber <nicolasweber@gmx.de>2013-02-13 04:13:13 +0000
commit37d693160eba22343e08d7bcf66cd132ace77e5c (patch)
tree104b538124f1c7b120e1772c786175a6e89c564f /unittests/Format/FormatTest.cpp
parent4c2cc603f5239f3b2963ce3e5d25adcf4d0a028d (diff)
Formatter: Refactor the cast detection code to be a bit more readable.
No functionality change. Also add another cast test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index f2ccdb0022..a91d325b51 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1723,6 +1723,7 @@ TEST_F(FormatTest, FormatsCasts) {
// These are not casts.
verifyFormat("void f(int *) {}");
+ verifyFormat("f(foo)[4];");
verifyFormat("void f(int *);");
verifyFormat("void f(int *) = 0;");
verifyFormat("void f(SmallVector<int>) {}");