forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.6'
Conflicts: src/plugins/qt4projectmanager/qt4buildconfiguration.cpp src/plugins/qtsupport/baseqtversion.cpp Change-Id: I288eeb1137e1b08d6c0d69f394cbb0fe1a937b68
This commit is contained in:
@@ -1120,10 +1120,12 @@ void CPPEditorWidget::switchDeclarationDefinition()
|
||||
foreach (const LookupItem &r, declarations) {
|
||||
if (Symbol *decl = r.declaration()) {
|
||||
if (Function *funTy = decl->type()->asFunctionType()) {
|
||||
if (funTy->isEqualTo(function) && decl != function && binding == r.binding())
|
||||
best.prepend(decl);
|
||||
else
|
||||
best.append(decl);
|
||||
if (funTy->isEqualTo(function)) {
|
||||
if (decl != function && binding == r.binding())
|
||||
best.prepend(decl);
|
||||
else
|
||||
best.append(decl);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1131,7 +1133,7 @@ void CPPEditorWidget::switchDeclarationDefinition()
|
||||
openCppEditorAt(linkToSymbol(best.first()));
|
||||
|
||||
} else if (lastVisibleSymbol && lastVisibleSymbol->isDeclaration() && lastVisibleSymbol->type()->isFunctionType()) {
|
||||
if (Symbol *def = symbolFinder()->findMatchingDefinition(lastVisibleSymbol, snapshot))
|
||||
if (Symbol *def = symbolFinder()->findMatchingDefinition(lastVisibleSymbol, snapshot, true))
|
||||
openCppEditorAt(linkToSymbol(def));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user