summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-10-12 05:16:06 +0000
committerDaniel Jasper <djasper@google.com>2013-10-12 05:16:06 +0000
commitfba84ff00d1fe7c56378eb665e5c09d050ba443d (patch)
tree9d64c37e3b71e9a1106203e5cd8425277d8537b1 /clang/unittests/Format/FormatTest.cpp
parented699259989868985a1a220d745161576242f4c9 (diff)
downloadbcm5719-llvm-fba84ff00d1fe7c56378eb665e5c09d050ba443d.tar.gz
bcm5719-llvm-fba84ff00d1fe7c56378eb665e5c09d050ba443d.zip
clang-format: No space in "<::" in C++11 mode.
llvm-svn: 192524
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
-rw-r--r--clang/unittests/Format/FormatTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp
index f80dc6fc34b..5fea8e781eb 100644
--- a/clang/unittests/Format/FormatTest.cpp
+++ b/clang/unittests/Format/FormatTest.cpp
@@ -3711,8 +3711,14 @@ TEST_F(FormatTest, UnderstandsTemplateParameters) {
verifyGoogleFormat("A<A<int> > a;");
verifyGoogleFormat("A<A<A<int> > > a;");
verifyGoogleFormat("A<A<A<A<int> > > > a;");
+ verifyGoogleFormat("A<::A<int>> a;");
+ verifyGoogleFormat("A<::A> a;");
+ verifyGoogleFormat("A< ::A> a;");
+ verifyGoogleFormat("A< ::A<int> > a;");
EXPECT_EQ("A<A<A<A>>> a;", format("A<A<A<A> >> a;", getGoogleStyle()));
EXPECT_EQ("A<A<A<A>>> a;", format("A<A<A<A>> > a;", getGoogleStyle()));
+ EXPECT_EQ("A<::A<int>> a;", format("A< ::A<int>> a;", getGoogleStyle()));
+ EXPECT_EQ("A<::A<int>> a;", format("A<::A<int> > a;", getGoogleStyle()));
verifyFormat("test >> a >> b;");
verifyFormat("test << a >> b;");
OpenPOWER on IntegriCloud