From eefc8cbc7d7ce31333258c9778e73ed6613bde01 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 24 Sep 2021 12:41:30 +0200 Subject: [PATCH] ClangCodeModel: Remove inapplicable TODO item I don't see any explicit sorting of the references in clangd, so let's continue to not rely on that. Change-Id: I65269af4995ab851e49f52686a10cc96697fbe64 Reviewed-by: David Schulz --- src/plugins/clangcodemodel/clangdclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index 1a00de51784..23b6f5c0a8f 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -1120,7 +1120,7 @@ void ClangdClient::Private::handleFindUsagesResult(quint64 key, const QListfileData[loc.uri()].rangesAndLineText << qMakePair(loc.range(), QString()); // TODO: Can we assume that locations for the same file are grouped? + refData->fileData[loc.uri()].rangesAndLineText << qMakePair(loc.range(), QString()); for (auto it = refData->fileData.begin(); it != refData->fileData.end(); ++it) { const QStringList lines = SymbolSupport::getFileContents(it.key().toFilePath()); it->fileContent = lines.join('\n');