forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.9'
Change-Id: I801042a53ae4d02d1891ea582ca9ea89b00d3181
This commit is contained in:
@@ -86,7 +86,7 @@ static void addFunctionOverloadAssistProposalItem(QList<AssistProposalItemInterf
|
||||
const QString &name)
|
||||
{
|
||||
auto *item = static_cast<ClangAssistProposalItem *>(sameItem);
|
||||
item->setHasOverloadsWithParameters(true);
|
||||
item->setHasOverloadsWithParameters(codeCompletion.hasParameters);
|
||||
if (codeCompletion.completionKind == CodeCompletion::ConstructorCompletionKind) {
|
||||
// It's the constructor, currently constructor definitions do not lead here.
|
||||
// CLANG-UPGRADE-CHECK: Can we get here with constructor definition?
|
||||
|
||||
@@ -49,7 +49,7 @@ private:
|
||||
void filterFixits();
|
||||
|
||||
private:
|
||||
const QString &m_filePath;
|
||||
const QString m_filePath;
|
||||
|
||||
QVector<ClangBackEnd::DiagnosticContainer> m_warningDiagnostics;
|
||||
QVector<ClangBackEnd::DiagnosticContainer> m_errorDiagnostics;
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <cpptools/cppmodelmanager.h>
|
||||
#include <cpptools/cppfollowsymbolundercursor.h>
|
||||
#include <texteditor/texteditor.h>
|
||||
|
||||
#include <clangsupport/tokeninfocontainer.h>
|
||||
@@ -183,12 +184,22 @@ void ClangFollowSymbol::findLink(const CppTools::CursorInEditor &data,
|
||||
return processLinkCallback(Utils::Link());
|
||||
|
||||
if (!resolveTarget) {
|
||||
processLinkCallback(linkAtCursor(cursor,
|
||||
data.filePath().toString(),
|
||||
static_cast<uint>(line),
|
||||
static_cast<uint>(column),
|
||||
processor));
|
||||
return;
|
||||
Utils::Link link = linkAtCursor(cursor,
|
||||
data.filePath().toString(),
|
||||
static_cast<uint>(line),
|
||||
static_cast<uint>(column),
|
||||
processor);
|
||||
if (link == Utils::Link()) {
|
||||
CppTools::FollowSymbolUnderCursor followSymbol;
|
||||
return followSymbol.findLink(data,
|
||||
std::move(processLinkCallback),
|
||||
false,
|
||||
snapshot,
|
||||
documentFromSemanticInfo,
|
||||
symbolFinder,
|
||||
inNextSplit);
|
||||
}
|
||||
return processLinkCallback(link);
|
||||
}
|
||||
|
||||
QFuture<CppTools::SymbolInfo> infoFuture
|
||||
|
||||
Reference in New Issue
Block a user