Recognize C++0x rvalue references.

This commit is contained in:
Roberto Raggi
2010-03-23 12:11:33 +01:00
parent 21c13328d3
commit 4b8d597196
13 changed files with 46 additions and 20 deletions

View File

@@ -150,8 +150,11 @@ void TypePrettyPrinter::applyPtrOperators(bool wantSpace)
if (op->isPointerType()) {
_text += QLatin1Char('*');
outCV(op);
} else if (op->isReferenceType()) {
_text += QLatin1Char('&');
} else if (const ReferenceType *ref = op->asReferenceType()) {
if (ref->isRvalueReference())
_text += QLatin1String("&&");
else
_text += QLatin1Char('&');
} else if (const PointerToMemberType *memPtrTy = op->asPointerToMemberType()) {
space();
_text += _overview->prettyName(memPtrTy->memberName());