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
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,
+
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
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/