In particular there's a common chain:
OpaqueValueExpr->PseudoObjectExpr->ObjCPropertyRefExpr->ObjCPropertyDecl
and we weren't handling the first two edges
Differential D72494
[clangd] Fix targetDecl() on certain usage of ObjC properties. sammccall on Jan 10 2020, 1:40 AM. Authored by
Details In particular there's a common chain: OpaqueValueExpr->PseudoObjectExpr->ObjCPropertyRefExpr->ObjCPropertyDecl and we weren't handling the first two edges
Diff Detail
Event TimelineComment Actions Could you also add a test (and possibly support this in the visitors) for findExplicitReferences? Comment Actions Unit tests: pass. 61742 tests passed, 0 failed and 780 were skipped. clang-tidy: fail. Please fix clang-tidy findings. clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch. Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml Comment Actions I've written tests, but it doesn't work and it's not obvious to me yet how to make it work, so I'll do this in a separate patch. Comment Actions By which I mean, adding the same delegation to the RAV there doesn't work, and I'm not confident that jiggling it around until the test passes is correct here, so I want to understand the traversal behavior a bit better first (RAV has several special cases around OVE/POE) |
clang-tidy: warning: invalid case style for function 'VisitObjCProtocolExpr' [readability-identifier-naming]