forked from OSchip/llvm-project
[libclang] Fix indexing type alias declarations. rdar://11878406
llvm-svn: 163072
This commit is contained in:
parent
da188de2b6
commit
b0b336ebe9
|
@ -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
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue