Selection tree was performing an early claim only for VarDecls, but
there are other cases where we can have declarators, e.g. FieldDecls. This patch
extends the early claim logic to all types of declarators.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang-tools-extra/clangd/Selection.cpp | ||
---|---|---|
651–653 | I think we can combine these two cases.
This changes more behaviour (and the changes are likely to be seen as regressions in some cases, though more consistent) so we could also consider just landing this as-is. | |
clang-tools-extra/clangd/unittests/SelectionTests.cpp | ||
380 | I'd suggest using digraphs instead, if it works: int hash<:32:> |
clang-tools-extra/clangd/Selection.cpp | ||
---|---|---|
641 | can you check this at HEAD? | |
clang-tools-extra/clangd/unittests/HoverTests.cpp | ||
342 | want to keep the conversion operator test too? (by pointing at operator) |
- Add the old test for hover over operator back.
clang-tools-extra/clangd/Selection.cpp | ||
---|---|---|
641 | nope, seems like still broken. |
can you check this at HEAD?
IIRC this was related to the reason kythe was failing to report constructors as references to the class, which is now fixed. But I don't know if they fixed the AST or worked around it.