diff options
author | Aleksandr Platonov <platonov.aleksandr@huawei.com> | 2020-07-27 14:39:31 +0300 |
---|---|---|
committer | Aleksandr Platonov <platonov.aleksandr@huawei.com> | 2020-07-27 15:35:53 +0300 |
commit | 90684d1545167ee4e0c93d8eaf6ba4a3c7ab710e (patch) | |
tree | 904b8fb14a68766ab7174d5b70bd70f8c2cea21d /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | db203e0268479d16d36a318c726cce5a4a5f75a6 (diff) | |
download | llvm-90684d1545167ee4e0c93d8eaf6ba4a3c7ab710e.zip llvm-90684d1545167ee4e0c93d8eaf6ba4a3c7ab710e.tar.gz llvm-90684d1545167ee4e0c93d8eaf6ba4a3c7ab710e.tar.bz2 |
[clangd] Collect references for externally visible main-file symbols
Summary:
Without this patch clangd does not collect references for main-file symbols if there is no public declaration in preamble.
Example:
`test1.c`
```
void f1() {}
```
`test2.c`
```
extern void f1();
void f2() {
f^1();
}
```
`Find all references` does not show definition of f1() in the result, but GTD works OK.
Reviewers: sammccall, kadircet
Reviewed By: kadircet
Subscribers: ilya-golovenko, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D84513
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions