Fix parsing of templated declarations.
authorDaniel Jasper <djasper@google.com>
Mon, 21 Jan 2013 14:39:22 +0000 (14:39 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 21 Jan 2013 14:39:22 +0000 (14:39 +0000)
commitc228619bb1835a11f0e07479d05b51db534eb117
tree73c4ff01f33220bfe14ec06b909d2a61f49f3573
parent89b13a7cf3ca9f1ac3d741d5877733753608330f
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
clang/lib/Format/Format.cpp
clang/test/Index/comment-to-html-xml-conversion.cpp
clang/test/Index/overriding-ftemplate-comments.cpp
clang/unittests/Format/FormatTest.cpp