forked from qt-creator/qt-creator
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 <david.schulz@qt.io>
This commit is contained in:
@@ -1120,7 +1120,7 @@ void ClangdClient::Private::handleFindUsagesResult(quint64 key, const QList<Loca
|
|||||||
});
|
});
|
||||||
|
|
||||||
for (const Location &loc : locations)
|
for (const Location &loc : locations)
|
||||||
refData->fileData[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) {
|
for (auto it = refData->fileData.begin(); it != refData->fileData.end(); ++it) {
|
||||||
const QStringList lines = SymbolSupport::getFileContents(it.key().toFilePath());
|
const QStringList lines = SymbolSupport::getFileContents(it.key().toFilePath());
|
||||||
it->fileContent = lines.join('\n');
|
it->fileContent = lines.join('\n');
|
||||||
|
Reference in New Issue
Block a user