C++ indenter: Simplify debugging by making dump() more verbose.

This commit is contained in:
Christian Kamm
2010-09-24 15:07:42 +02:00
parent 0420f91c12
commit be563abf68
3 changed files with 9 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ class CppCodeFormatterData;
class CPPTOOLS_EXPORT CodeFormatter
{
Q_GADGET
public:
CodeFormatter();
virtual ~CodeFormatter();
@@ -98,7 +99,7 @@ protected:
virtual void saveLexerState(QTextBlock *block, int state) const = 0;
virtual int loadLexerState(const QTextBlock &block) const = 0;
protected:
public: // must be public to make Q_GADGET introspection work
enum StateType {
invalid = 0,
@@ -170,7 +171,9 @@ protected:
expression, // after a '=' in a declaration_start once we're sure it's not '= {'
initializer, // after a '=' in a declaration start
};
Q_ENUMS(StateType)
protected:
class State {
public:
State()