[PATCH] D77717: [clang][index] index the missing LabelDecl in libindex.

2020-04-08 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang/lib/Index/IndexBody.cpp:152 +if (auto *LabelDecl = Label->getDecl()) + IndexCtx.handleReference(LabelDecl, Label->getIdentLoc(), Parent, + ParentDC, argh, looks like Recursiv

[PATCH] D77717: [clang][index] index the missing LabelDecl in libindex.

2020-04-08 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. we should also be handling `LabelDecl`s in clang/lib/Index/IndexDecl.cpp Comment at: clang/lib/Index/IndexBody.cpp:145 +if (auto *LabelDecl = Goto->getLabel()) + IndexCtx.handleReference(LabelDecl, Goto->getLabelLoc(), Parent, ParentDC, +

[PATCH] D77717: [clang][index] index the missing LabelDecl in libindex.

2020-04-08 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 256001. hokein added a comment. Herald added subscribers: usaxena95, jkorous. add a clangd xref test. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77717/new/ https://reviews.llvm.org/D77717 Files: clang-tool

[PATCH] D77717: [clang][index] index the missing LabelDecl in libindex.

2020-04-08 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: kadircet. Herald added a subscriber: arphaman. Herald added a project: clang. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D77717 Files: clang/lib/Index/IndexBody.cpp clang/unittests/Index/IndexTests.cpp Index: clang/