CppTools: Fix nextToSurroundingDefinitions

Now it is checked if the adjacent declaration is also defined and one
can define the destination file.

Change-Id: Ifff59c49fc2ab3e2f36f41df42ae4b7d7ff8dd35
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Lorenz Haas
2013-06-07 16:44:08 +02:00
committed by Nikolai Kosjar
parent c51195d9bb
commit 8f4c4b41f6
5 changed files with 207 additions and 30 deletions

View File

@@ -99,7 +99,8 @@ public:
AccessSpec xsSpec) const;
QList<InsertionLocation> methodDefinition(CPlusPlus::Symbol *declaration,
bool useSymbolFinder = true) const;
bool useSymbolFinder = true,
const QString &destinationFile = QString()) const;
private:
CppRefactoringChanges m_refactoringChanges;