[libclang] Fix indexing type alias declarations. rdar://11878406

llvm-svn: 163072
This commit is contained in:
Argyrios Kyrtzidis 2012-09-01 19:08:08 +00:00
parent da188de2b6
commit b0b336ebe9
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,6 @@
using MyTypeAlias = int;
// RUN: c-index-test -index-file %s > %t
// RUN: FileCheck %s -input-file=%t
// CHECK: [indexDeclaration]: kind: type-alias | name: MyTypeAlias | {{.*}} | loc: 1:7

View File

@ -110,7 +110,7 @@ public:
return true;
}
bool VisitTypedefDecl(TypedefNameDecl *D) {
bool VisitTypedefNameDecl(TypedefNameDecl *D) {
IndexCtx.handleTypedefName(D);
IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D);
return true;