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 | c228619bb1835a11f0e07479d05b51db534eb117 (patch) | |
tree | 73c4ff01f33220bfe14ec06b909d2a61f49f3573 /clang/unittests/Format | |
parent | 89b13a7cf3ca9f1ac3d741d5877733753608330f (diff) | |
download | bcm5719-llvm-c228619bb1835a11f0e07479d05b51db534eb117.tar.gz bcm5719-llvm-c228619bb1835a11f0e07479d05b51db534eb117.zip |
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.
llvm-svn: 173047
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r-- | clang/unittests/Format/FormatTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index f67cd8c222d..149ca0c24a4 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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;"); |