diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-12-08 08:48:43 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-12-08 08:48:43 +0000 |
commit | 1d5e542fb22a9979a8634b6d3f130f77de2509be (patch) | |
tree | 5e78120597174596f6b92ea50dcba887a516ccdf /clang/lib/Index | |
parent | 80537a41461de3bec0fa5037a1b35c7e6c2ee07d (diff) | |
download | llvm-1d5e542fb22a9979a8634b6d3f130f77de2509be.tar.gz |
[libclang] Encode InjectedClassNameType in the USR.
llvm-svn: 223634
Diffstat (limited to 'clang/lib/Index')
-rw-r--r-- | clang/lib/Index/USRGeneration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Index/USRGeneration.cpp b/clang/lib/Index/USRGeneration.cpp index 29a1b3dcd125..d03d238e34d9 100644 --- a/clang/lib/Index/USRGeneration.cpp +++ b/clang/lib/Index/USRGeneration.cpp @@ -706,6 +706,10 @@ void USRGenerator::VisitType(QualType T) { Out << ':' << DNT->getIdentifier()->getName(); return; } + if (const InjectedClassNameType *InjT = T->getAs<InjectedClassNameType>()) { + T = InjT->getInjectedSpecializationType(); + continue; + } // Unhandled type. Out << ' '; |