CppTools: Open InsertionPointLocator::methodDefinition for symbols

Remove restricted use of declarations and add an option to define if
SymbolFinder should be used to find a matching definition for symbol.

Change-Id: If5cf5b11926e116766dd60dd3726b4fcf2e1c9f5
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Lorenz Haas
2013-05-30 17:32:15 +02:00
committed by Erik Verbruggen
parent 1738ff64a6
commit cc1b66f1cc
2 changed files with 11 additions and 7 deletions

View File

@@ -98,7 +98,8 @@ public:
const CPlusPlus::Class *clazz,
AccessSpec xsSpec) const;
QList<InsertionLocation> methodDefinition(CPlusPlus::Declaration *declaration) const;
QList<InsertionLocation> methodDefinition(CPlusPlus::Symbol *declaration,
bool useSymbolFinder = true) const;
private:
CppRefactoringChanges m_refactoringChanges;