diff options
| author | Douglas Gregor <dgregor@apple.com> | 2011-01-20 16:08:06 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2011-01-20 16:08:06 +0000 |
| commit | 7a2a116bab8322fd07a1c314690ee487e2aa71aa (patch) | |
| tree | 94c50954693517869ba42a542ad7c1e2c8d11ca1 /clang/lib/AST | |
| parent | 6e5a54b36c083542d8f987929111043a0afb1c07 (diff) | |
| download | bcm5719-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.cpp | 3 |
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); |

