forked from qt-creator/qt-creator
Removed stray tokens and fixed warnings/errors when compiling with pedantic C++ compilers.
This commit is contained in:
@@ -70,9 +70,9 @@ public:
|
||||
WarnUseBeforeDeclaration = 1 << 8,
|
||||
WarnDuplicateDeclaration = 1 << 9,
|
||||
WarnDeclarationsNotStartOfFunction = 1 << 10,
|
||||
WarnCaseWithoutFlowControlEnd = 1 << 11,
|
||||
WarnCaseWithoutFlowControlEnd = 1 << 11
|
||||
};
|
||||
Q_DECLARE_FLAGS(Options, Option);
|
||||
Q_DECLARE_FLAGS(Options, Option)
|
||||
|
||||
protected:
|
||||
virtual bool preVisit(AST::Node *ast);
|
||||
|
||||
@@ -169,7 +169,7 @@ public: // must be public to make Q_GADGET introspection work
|
||||
|
||||
switch_statement, // After 'switch' token
|
||||
case_start, // after a 'case' or 'default' token
|
||||
case_cont, // after the colon in a case/default
|
||||
case_cont // after the colon in a case/default
|
||||
};
|
||||
Q_ENUMS(StateType)
|
||||
|
||||
@@ -233,7 +233,7 @@ protected:
|
||||
|
||||
Question,
|
||||
PlusPlus,
|
||||
MinusMinus,
|
||||
MinusMinus
|
||||
};
|
||||
|
||||
TokenKind extendedTokenKind(const QmlJS::Token &token) const;
|
||||
|
||||
Reference in New Issue
Block a user