diff options
author | Daniel Jasper <djasper@google.com> | 2013-01-21 14:39:22 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-01-21 14:39:22 +0000 |
commit | 032f25329565adfc542f001953565091eccba130 (patch) | |
tree | 186a63f8a58eb0b901cdcf1eb078275f67d2488f /unittests/Format/FormatTest.cpp | |
parent | d19dc2ddf3f8630cfdbefec490c0000c14bee6bd (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.cpp | 3 |
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;"); |