summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexSymbol.cpp
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2019-05-29 10:11:14 +0000
committerIlya Biryukov <ibiryukov@google.com>2019-05-29 10:11:14 +0000
commitbf559a7f3fca4630b3e3511da18ab78d65a5e7ff (patch)
tree3aee31b5f5ad798f49acf3ea4c5fb4a66be083be /clang/lib/Index/IndexSymbol.cpp
parentf9169d0896dff637f1476e042a0669ef8c981167 (diff)
downloadbcm5719-llvm-bf559a7f3fca4630b3e3511da18ab78d65a5e7ff.tar.gz
bcm5719-llvm-bf559a7f3fca4630b3e3511da18ab78d65a5e7ff.zip
[Index] Correctly set symbol kind of IndirectFieldDecl
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 llvm-svn: 361941
Diffstat (limited to 'clang/lib/Index/IndexSymbol.cpp')
-rw-r--r--clang/lib/Index/IndexSymbol.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexSymbol.cpp b/clang/lib/Index/IndexSymbol.cpp
index a8f11b34486..db397b98561 100644
--- a/clang/lib/Index/IndexSymbol.cpp
+++ b/clang/lib/Index/IndexSymbol.cpp
@@ -168,6 +168,7 @@ SymbolInfo index::getSymbolInfo(const Decl *D) {
Info.Kind = SymbolKind::Function;
break;
case Decl::Field:
+ case Decl::IndirectField:
Info.Kind = SymbolKind::Field;
if (const CXXRecordDecl *
CXXRec = dyn_cast<CXXRecordDecl>(D->getDeclContext())) {
OpenPOWER on IntegriCloud