diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-16 07:19:28 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-16 07:19:28 +0000 |
commit | 6b825c2e1e691deca41c6f979164b5d20c203593 (patch) | |
tree | ccb818774f46425cf6d916eba13cd30a2a5e3263 /unittests/Format/FormatTest.cpp | |
parent | 55b08e769f05987942c307fde8eb168df01e504f (diff) |
Never merge < and ::, as it produces different tokens.
Before: vector<::Type> t;
After: vector< ::Type> t;
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index ac61af3bfa..ca022a4bbe 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -131,6 +131,10 @@ TEST_F(FormatTest, FormatsNestedCall) { verifyFormat("Method(f1(f2, (f3())));"); } +TEST_F(FormatTest, ImportantSpaces) { + verifyFormat("vector< ::Type> v;"); +} + //===----------------------------------------------------------------------===// // Tests for control statements. //===----------------------------------------------------------------------===// |