forked from qt-creator/qt-creator
Introduced helpers to rewrite types and names.
Done-with: Erik Verbruggen
This commit is contained in:
@@ -995,8 +995,9 @@ void CPPEditor::switchDeclarationDefinition()
|
||||
LookupContext context(thisDocument, snapshot);
|
||||
|
||||
Function *functionDefinition = functionScope->owner()->asFunction();
|
||||
const QList<Symbol *> declarations = context.lookup(functionDefinition->name(), functionDefinition->scope());
|
||||
foreach (Symbol *decl, declarations) {
|
||||
const QList<LookupItem> declarations = context.lookup(functionDefinition->name(), functionDefinition->scope());
|
||||
foreach (const LookupItem &r, declarations) {
|
||||
Symbol *decl = r.declaration();
|
||||
// TODO: check decl.
|
||||
openCppEditorAt(linkToSymbol(decl));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user