Summary: The kind has been 'unknown' before, now it is 'field'.
Reviewers: kadircet
Reviewed By: kadircet
Subscribers: jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62573
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361941
91177308-0d34-0410-b5e6-
96231b3b80d8
Info.Kind = SymbolKind::Function;
break;
case Decl::Field:
+ case Decl::IndirectField:
Info.Kind = SymbolKind::Field;
if (const CXXRecordDecl *
CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) {
--- /dev/null
+struct X {
+ union {
+ void *a;
+ };
+};
+
+// RUN: c-index-test -index-file %s > %t
+// RUN: FileCheck %s -input-file=%t
+
+// CHECK: [indexDeclaration]: kind: field | name: a | {{.*}} | loc: 3:11