summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-12-08 08:48:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-12-08 08:48:27 +0000
commit0e387dc33096346c5aa60c341f38784fc0ddcbb7 (patch)
tree151528579bc62465af8b938ba8134c01c49d2af2 /clang/lib
parentf581909b3bbcff5301795f9ff2172cf4ac9bcb66 (diff)
downloadbcm5719-llvm-0e387dc33096346c5aa60c341f38784fc0ddcbb7.tar.gz
bcm5719-llvm-0e387dc33096346c5aa60c341f38784fc0ddcbb7.zip
[libclang] Encode C++11 rvalue reference types in the USR.
llvm-svn: 223631
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Index/USRGeneration.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Index/USRGeneration.cpp b/clang/lib/Index/USRGeneration.cpp
index 88e6d3bf8ac..a41da8ae3e4 100644
--- a/clang/lib/Index/USRGeneration.cpp
+++ b/clang/lib/Index/USRGeneration.cpp
@@ -643,6 +643,11 @@ void USRGenerator::VisitType(QualType T) {
T = PT->getPointeeType();
continue;
}
+ if (const RValueReferenceType *RT = T->getAs<RValueReferenceType>()) {
+ Out << "&&";
+ T = RT->getPointeeType();
+ continue;
+ }
if (const ReferenceType *RT = T->getAs<ReferenceType>()) {
Out << '&';
T = RT->getPointeeType();
OpenPOWER on IntegriCloud