diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2021-09-30 15:25:42 +0200 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2021-10-01 12:38:18 +0200 |
commit | 512aa8485010009f6ec1b8d9deea3effe67e0106 (patch) | |
tree | 397a837fcb3b1f6f050e302408efc1f4b6ec1182 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
parent | 413b7ac6b535dfb4c57c2842388a2071901b9d56 (diff) | |
download | llvm-512aa8485010009f6ec1b8d9deea3effe67e0106.zip llvm-512aa8485010009f6ec1b8d9deea3effe67e0106.tar.gz llvm-512aa8485010009f6ec1b8d9deea3effe67e0106.tar.bz2 |
[clangd] Handle members of anon structs in SelectionTree
References to fields inside anon structs contain an implicit children
for the container, which has the same SourceLocation with the field.
This was resulting in SelectionTree always picking the anon-struct rather than
the field as the selection.
This patch prevents that by claiming the range for the field early.
https://github.com/clangd/clangd/issues/877.
Differential Revision: https://reviews.llvm.org/D110825
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions