aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-21 14:39:22 +0000
committerDaniel Jasper <djasper@google.com>2013-01-21 14:39:22 +0000
commit032f25329565adfc542f001953565091eccba130 (patch)
tree186a63f8a58eb0b901cdcf1eb078275f67d2488f /unittests/Format/FormatTest.cpp
parentd19dc2ddf3f8630cfdbefec490c0000c14bee6bd (diff)
Fix parsing of templated declarations.
Before: template <template <typename T>, typename P > class X; After: template <template <typename T>, typename P> class X; More importantly, the token annotations for the second ">" are now computed correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index f67cd8c222..149ca0c24a 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1523,8 +1523,7 @@ TEST_F(FormatTest, UnderstandContextOfRecordTypeKeywords) {
// Actual definitions...
verifyFormat("struct {} n;");
- verifyFormat(
- "template <template <class T, class Y>, class Z > class X {} n;");
+ verifyFormat("template <template <class T, class Y>, class Z> class X {} n;");
verifyFormat("union Z {\n int n;\n} x;");
verifyFormat("class MACRO Z {} n;");
verifyFormat("class MACRO(X) Z {} n;");