Skip to content

Commit 5e15f51

Browse files
committed
Misc
1 parent b570ae2 commit 5e15f51

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ cquery has system include path detection (through running the compiler driver) w
4141
# >>> [Getting started](../../wiki/Home) (CLICK HERE) <<<
4242

4343
* [Build](../../wiki/Build)
44-
* [Client feature table](../../wiki/Client-feature-table)
4544
* [FAQ](../../wiki/FAQ)
4645

4746
ccls can index itself (~180MiB RSS when idle, noted on 2018-09-01), FreeBSD, glibc, Linux, LLVM (~1800MiB RSS), musl (~60MiB RSS), ... with decent memory footprint. See [wiki/compile_commands.json](../../wiki/compile_commands.json) for examples.

src/indexer.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ class IndexDataConsumer : public index::IndexDataConsumer {
473473
info.usr = HashUsr(USR);
474474
if (auto *ND = dyn_cast<NamedDecl>(D)) {
475475
info.short_name = ND->getNameAsString();
476-
info.qualified = ND->getQualifiedNameAsString();
476+
llvm::raw_string_ostream OS(info.qualified);
477+
ND->printQualifiedName(OS, GetDefaultPolicy());
477478
SimplifyAnonymous(info.qualified);
478479
}
479480
}

src/messages/textDocument_document.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ REFLECT_STRUCT(DocumentLink, range, target);
8888
void MessageHandler::textDocument_documentLink(TextDocumentParam &param,
8989
ReplyOnce &reply) {
9090
auto [file, wf] = FindOrFail(param.textDocument.uri.GetPath(), reply);
91-
if (!wf) {
91+
if (!wf)
9292
return;
93-
}
9493

9594
std::vector<DocumentLink> result;
95+
int column;
9696
for (const IndexInclude &include : file->def->includes)
9797
if (std::optional<int> bline =
98-
wf->GetBufferPosFromIndexPos(include.line, nullptr, false)) {
98+
wf->GetBufferPosFromIndexPos(include.line, &column, false)) {
9999
const std::string &line = wf->buffer_lines[*bline];
100100
auto start = line.find_first_of("\"<"), end = line.find_last_of("\">");
101101
if (start < end)

0 commit comments

Comments
 (0)