c++2011 right angle brackets - changing tokenstream or alternative?

Milian Wolff mail at milianw.de
Thu Jun 23 18:40:45 UTC 2011


Milian Wolff, 23.06.2011:
> Hey all,
> 
> I wonder what your take on the improved right angle bracket support in
> c++2011 is:
> 
> http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html
> 
> The spec (14.2/3) clearly says now:
> 
> Similarly, the first non-nested >> is treated as two consecutive but
> distinct
> 
> > tokens, the first of which is taken as the end of the
> > template-argument-list
> 
> and completes the template-id. [ Note: The second > token produced by this
> replacement rule may terminate an enclosing template-id construct or it may
> be part of a different construct (e.g., a cast). --end note ]
> 
> So I wonder: Should I also add such a replace functionality to the token
> stream or should I handle it differently?

I've implemented it like this now:

http://commits.kde.org/kdevelop/55a7f0834ba884a6c70f991daefe3ae24b39d292

Anyone opposed to reuse KDevVarLengthArray in the tokenstream? That would 
clean up new and old code a bit...
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110623/455512a6/attachment.sig>


More information about the KDevelop-devel mailing list