Added quickfix operation to split simple-declarations. E.g. int a, b; will be replaced with int a; int b;.

This commit is contained in:
Roberto Raggi
2009-11-20 10:47:19 +01:00
parent 9a7729ebdc
commit 9903b0aedb
2 changed files with 149 additions and 28 deletions

View File

@@ -91,6 +91,11 @@ protected:
void replace(const CPlusPlus::AST *ast, const QString &replacement);
void insert(int at, const QString &text);
QString textOf(int firstOffset, int lastOffset) const;
QString textOf(CPlusPlus::AST *ast) const;
QTextCursor createCursor(CPlusPlus::AST *ast) const; // ### rename me
void execute();
private: