forked from qt-creator/qt-creator
CppEditor: Add a second variant of "move def to decl" quickfix
This time with the cursor on the declaration. Fixes: QTCREATORBUG-9515 Change-Id: I50b2ac8516f4df98e4cc9e3ffa60a9e5cf079c4e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -520,9 +520,18 @@ public:
|
||||
};
|
||||
|
||||
/*!
|
||||
Moves the definition of a function to its declaration.
|
||||
Moves the definition of a function to its declaration, with the cursor on the definition.
|
||||
*/
|
||||
class MoveFuncDefToDecl: public CppQuickFixFactory
|
||||
class MoveFuncDefToDeclPush : public CppQuickFixFactory
|
||||
{
|
||||
public:
|
||||
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result) override;
|
||||
};
|
||||
|
||||
/*!
|
||||
Moves the definition of a function to its declaration, with the cursor on the declaration.
|
||||
*/
|
||||
class MoveFuncDefToDeclPull : public CppQuickFixFactory
|
||||
{
|
||||
public:
|
||||
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result) override;
|
||||
|
||||
Reference in New Issue
Block a user