forked from qt-creator/qt-creator
CppEditor: implement ExtractLiteralAsParameter quickfix
Task-number: QTCREATORBUG-9617 Change-Id: I6c6313746b837775bab665bb7019a2adf0b0f286 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
@@ -456,6 +456,17 @@ public:
|
||||
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
|
||||
};
|
||||
|
||||
/*!
|
||||
Extracts the selected constant and converts it to a parameter of the current function.
|
||||
|
||||
Activates on numeric, bool, character, or string literal in the function body.
|
||||
*/
|
||||
class ExtractLiteralAsParameter : public CppQuickFixFactory
|
||||
{
|
||||
public:
|
||||
void match(const CppQuickFixInterface &interface, TextEditor::QuickFixOperations &result);
|
||||
};
|
||||
|
||||
/*!
|
||||
Adds getter and setter functions for a member variable
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user