forked from qt-creator/qt-creator
Recognize C++0x rvalue references.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user