diff options
author | Kadir Cetinkaya <kadircet@google.com> | 2019-10-01 10:58:35 +0200 |
---|---|---|
committer | Kadir Cetinkaya <kadircet@google.com> | 2019-11-25 10:42:13 +0100 |
commit | 5075c68219826a199c67f7450c7cf60a55a71c0b (patch) | |
tree | 30ba2fb1a67c5bd1d61bfc1d8da392eae3591a8a /lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py | |
parent | 97d6e8e0f3748e6fe2b27983803e2df75874507e (diff) | |
download | bcm5719-llvm-5075c68219826a199c67f7450c7cf60a55a71c0b.tar.gz bcm5719-llvm-5075c68219826a199c67f7450c7cf60a55a71c0b.zip |
[clangd] Improve symbol qualification in DefineInline code action
Summary:
Currently define inline action fully qualifies any names in the
function body, which is not optimal and definitely natural.
This patch tries to improve the situation by dropping any name
specifiers shared by function and names spelled in the body. For example
if you are moving definition of a function in namespace clang::clangd,
and body has any decl's coming from clang or clang::clangd namespace,
those qualifications won't be added since they are redundant.
It also drops any qualifiers that are visible in target context.
Reviewers: ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69033
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions