C++: Trigger function signature change via quick fix.

This way we don't need to override Return and Escape.

Change-Id: I1548118c06ee7338ba3dd9d84b82b9314ab16782
Reviewed-on: http://codereview.qt.nokia.com/4183
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
Christian Kamm
2011-09-05 10:33:17 +02:00
parent b96b560634
commit e99f915623
6 changed files with 67 additions and 25 deletions

View File

@@ -33,6 +33,8 @@
#ifndef CPPFUNCTIONDECLDEFLINK_H
#define CPPFUNCTIONDECLDEFLINK_H
#include "cppquickfix.h"
#include <cplusplus/CppDocument.h>
#include <cplusplus/ASTfwd.h>
@@ -121,6 +123,13 @@ private:
friend class FunctionDeclDefLinkFinder;
};
class ApplyDeclDefLinkChanges: public CppQuickFixFactory
{
public:
virtual QList<CppQuickFixOperation::Ptr>
match(const QSharedPointer<const Internal::CppQuickFixAssistInterface> &interface);
};
} // namespace Internal
} // namespace CppEditor