RValue reference support

Milian Wolff mail at milianw.de
Wed Jun 1 22:16:41 UTC 2011


Hey all, esp. David.

I wonder how to add support for RValue references in Cpp0x, e.g.:

int&& a;

see also: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2006/n2118.html

The parser support is straight forward (just handle Token_and in ptrOp). But 
for DUChain support I wonder:

IndexedTypeIdentifier has 'isReference' - which is true. But probably we need 
something special for 'isRValueReference' - so should this be extended?

Also there is referneceType - shoud it be extended (just for C++?) to also 
cover the rvalue-reference case?

bye
-- 
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/20110602/01a90dc8/attachment.sig>


More information about the KDevelop-devel mailing list