aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-02-07 21:08:36 +0000
committerDaniel Jasper <djasper@google.com>2013-02-07 21:08:36 +0000
commitdaf1a15d734d154f07d5a0328d3ef59cd9a68f13 (patch)
treef61f82303ff29b379ce8b79281904b65a7066685 /unittests/Format/FormatTest.cpp
parent882090e76a48337ce55fdc913a7e8a19ff35f4fc (diff)
clang-format: Don't put useless space in f( ::g()).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index 6924e45504..8ea0ff1604 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -147,8 +147,9 @@ TEST_F(FormatTest, FormatsNestedCall) {
verifyFormat("Method(f1(f2, (f3())));");
}
-TEST_F(FormatTest, ImportantSpaces) {
+TEST_F(FormatTest, NestedNameSpecifiers) {
verifyFormat("vector< ::Type> v;");
+ verifyFormat("::ns::SomeFunction(::ns::SomeOtherFunction())");
}
TEST_F(FormatTest, OnlyGeneratesNecessaryReplacements) {