summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-20 16:08:06 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-20 16:08:06 +0000
commit7a2a116bab8322fd07a1c314690ee487e2aa71aa (patch)
tree94c50954693517869ba42a542ad7c1e2c8d11ca1 /clang/lib/AST
parent6e5a54b36c083542d8f987929111043a0afb1c07 (diff)
downloadbcm5719-llvm-7a2a116bab8322fd07a1c314690ee487e2aa71aa.tar.gz
bcm5719-llvm-7a2a116bab8322fd07a1c314690ee487e2aa71aa.zip
Add some tests for reference-collapsing and referencing binding
involving rvalue references, to start scoping out what is and what isn't implemented. In the process, tweak some standards citations, type desugaring, and teach the tentative parser about && in ptr-operator. llvm-svn: 123913
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/ASTDiagnostic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTDiagnostic.cpp b/clang/lib/AST/ASTDiagnostic.cpp
index bd128f0514a..9870b515c67 100644
--- a/clang/lib/AST/ASTDiagnostic.cpp
+++ b/clang/lib/AST/ASTDiagnostic.cpp
@@ -103,6 +103,9 @@ break; \
} else if (const LValueReferenceType *Ty = QT->getAs<LValueReferenceType>()) {
QT = Context.getLValueReferenceType(Desugar(Context, Ty->getPointeeType(),
ShouldAKA));
+ } else if (const RValueReferenceType *Ty = QT->getAs<RValueReferenceType>()) {
+ QT = Context.getRValueReferenceType(Desugar(Context, Ty->getPointeeType(),
+ ShouldAKA));
}
return QC.apply(Context, QT);
OpenPOWER on IntegriCloud