Commit 48f19e92 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Use Q_DECL_OVERRIDE instead of QTC_OVERRIDE



This patch removes src/libs/utils/qtcoverride.h
and uses Q_DECL_OVERRIDE from Qt 5 instead.

Change-Id: I61ffa539648ffe996dc061eec7708c04580c0f09
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 652c53bf
......@@ -37,7 +37,6 @@
#include <qmljs/qmljsstaticanalysismessage.h>
#include <utils/json.h>
#include <utils/qtcoverride.h>
#include <QStack>
#include <QList>
......@@ -54,16 +53,16 @@ public:
QList<StaticAnalysis::Message> operator()(Utils::JsonSchema *schema);
private:
bool preVisit(AST::Node *) QTC_OVERRIDE;
void postVisit(AST::Node *) QTC_OVERRIDE;
bool visit(AST::ObjectLiteral *ast) QTC_OVERRIDE;
bool visit(AST::ArrayLiteral *ast) QTC_OVERRIDE;
bool visit(AST::NullExpression *ast) QTC_OVERRIDE;
bool visit(AST::TrueLiteral *ast) QTC_OVERRIDE;
bool visit(AST::FalseLiteral *ast) QTC_OVERRIDE;
bool visit(AST::NumericLiteral *ast) QTC_OVERRIDE;
bool visit(AST::StringLiteral *ast) QTC_OVERRIDE;
bool preVisit(AST::Node *) Q_DECL_OVERRIDE;
void postVisit(AST::Node *) Q_DECL_OVERRIDE;
bool visit(AST::ObjectLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::ArrayLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::NullExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::TrueLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::FalseLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::NumericLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::StringLiteral *ast) Q_DECL_OVERRIDE;
struct AnalysisData
{
......
......@@ -32,7 +32,6 @@
#include <qmljs/parser/qmljsastvisitor_p.h>
#include <qmljs/qmljsvalueowner.h>
#include <utils/qtcoverride.h>
#include <QHash>
#include <QCoreApplication>
......@@ -69,21 +68,21 @@ protected:
void accept(AST::Node *node);
bool visit(AST::UiProgram *ast) QTC_OVERRIDE;
bool visit(AST::Program *ast) QTC_OVERRIDE;
bool visit(AST::UiProgram *ast) Q_DECL_OVERRIDE;
bool visit(AST::Program *ast) Q_DECL_OVERRIDE;
// Ui
bool visit(AST::UiImport *ast) QTC_OVERRIDE;
bool visit(AST::UiPublicMember *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectDefinition *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiScriptBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiArrayBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiImport *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiPublicMember *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectDefinition *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiScriptBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiArrayBinding *ast) Q_DECL_OVERRIDE;
// QML/JS
bool visit(AST::FunctionDeclaration *ast) QTC_OVERRIDE;
bool visit(AST::FunctionExpression *ast) QTC_OVERRIDE;
bool visit(AST::VariableDeclaration *ast) QTC_OVERRIDE;
bool visit(AST::FunctionDeclaration *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::VariableDeclaration *ast) Q_DECL_OVERRIDE;
ObjectValue *switchObjectValue(ObjectValue *newObjectValue);
ObjectValue *bindObject(AST::UiQualifiedId *qualifiedTypeNameId, AST::UiObjectInitializer *initializer);
......
......@@ -34,7 +34,6 @@
#include <qmljs/qmljsscopechain.h>
#include <qmljs/qmljsstaticanalysismessage.h>
#include <qmljs/parser/qmljsastvisitor_p.h>
#include <utils/qtcoverride.h>
#include <QCoreApplication>
#include <QSet>
......@@ -61,43 +60,43 @@ public:
void disableMessage(StaticAnalysis::Type type);
protected:
bool preVisit(AST::Node *ast) QTC_OVERRIDE;
void postVisit(AST::Node *ast) QTC_OVERRIDE;
bool visit(AST::UiProgram *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectDefinition *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiScriptBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiArrayBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiPublicMember *ast) QTC_OVERRIDE;
bool visit(AST::IdentifierExpression *ast) QTC_OVERRIDE;
bool visit(AST::FieldMemberExpression *ast) QTC_OVERRIDE;
bool visit(AST::FunctionDeclaration *ast) QTC_OVERRIDE;
bool visit(AST::FunctionExpression *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectInitializer *) QTC_OVERRIDE;
bool visit(AST::BinaryExpression *ast) QTC_OVERRIDE;
bool visit(AST::Block *ast) QTC_OVERRIDE;
bool visit(AST::WithStatement *ast) QTC_OVERRIDE;
bool visit(AST::VoidExpression *ast) QTC_OVERRIDE;
bool visit(AST::Expression *ast) QTC_OVERRIDE;
bool visit(AST::ExpressionStatement *ast) QTC_OVERRIDE;
bool visit(AST::IfStatement *ast) QTC_OVERRIDE;
bool visit(AST::ForStatement *ast) QTC_OVERRIDE;
bool visit(AST::LocalForStatement *ast) QTC_OVERRIDE;
bool visit(AST::WhileStatement *ast) QTC_OVERRIDE;
bool visit(AST::DoWhileStatement *ast) QTC_OVERRIDE;
bool visit(AST::CaseBlock *ast) QTC_OVERRIDE;
bool visit(AST::NewExpression *ast) QTC_OVERRIDE;
bool visit(AST::NewMemberExpression *ast) QTC_OVERRIDE;
bool visit(AST::CallExpression *ast) QTC_OVERRIDE;
bool visit(AST::StatementList *ast) QTC_OVERRIDE;
bool visit(AST::ReturnStatement *ast) QTC_OVERRIDE;
bool visit(AST::ThrowStatement *ast) QTC_OVERRIDE;
bool visit(AST::DeleteExpression *ast) QTC_OVERRIDE;
bool visit(AST::TypeOfExpression *ast) QTC_OVERRIDE;
void endVisit(QmlJS::AST::UiObjectInitializer *) QTC_OVERRIDE;
bool preVisit(AST::Node *ast) Q_DECL_OVERRIDE;
void postVisit(AST::Node *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiProgram *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectDefinition *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiScriptBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiArrayBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiPublicMember *ast) Q_DECL_OVERRIDE;
bool visit(AST::IdentifierExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::FieldMemberExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionDeclaration *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectInitializer *) Q_DECL_OVERRIDE;
bool visit(AST::BinaryExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::Block *ast) Q_DECL_OVERRIDE;
bool visit(AST::WithStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::VoidExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::Expression *ast) Q_DECL_OVERRIDE;
bool visit(AST::ExpressionStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::IfStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ForStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::LocalForStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::WhileStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::DoWhileStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::CaseBlock *ast) Q_DECL_OVERRIDE;
bool visit(AST::NewExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::NewMemberExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::CallExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::StatementList *ast) Q_DECL_OVERRIDE;
bool visit(AST::ReturnStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ThrowStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::DeleteExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::TypeOfExpression *ast) Q_DECL_OVERRIDE;
void endVisit(QmlJS::AST::UiObjectInitializer *) Q_DECL_OVERRIDE;
private:
void visitQmlObject(AST::Node *ast, AST::UiQualifiedId *typeId,
......
......@@ -34,7 +34,6 @@
#include "qmljsscanner.h"
#include <utils/qtcoverride.h>
#include <QStack>
#include <QList>
#include <QVector>
......@@ -324,8 +323,8 @@ public:
void setIndentSize(int size);
protected:
void onEnter(int newState, int *indentDepth, int *savedIndentDepth) const QTC_OVERRIDE;
void adjustIndent(const QList<QmlJS::Token> &tokens, int lexerState, int *indentDepth) const QTC_OVERRIDE;
void onEnter(int newState, int *indentDepth, int *savedIndentDepth) const Q_DECL_OVERRIDE;
void adjustIndent(const QList<QmlJS::Token> &tokens, int lexerState, int *indentDepth) const Q_DECL_OVERRIDE;
private:
int m_indentSize;
......
......@@ -187,7 +187,7 @@ public:
return true;
}
bool processProperty(const QString &name, const Value *value, const PropertyInfo &pInfo) QTC_OVERRIDE
bool processProperty(const QString &name, const Value *value, const PropertyInfo &pInfo) Q_DECL_OVERRIDE
{
d.dumpNewline();
d.dump(name);
......@@ -200,19 +200,19 @@ public:
d.closeContext("");
return true;
}
bool processEnumerator(const QString &name, const Value *value) QTC_OVERRIDE
bool processEnumerator(const QString &name, const Value *value) Q_DECL_OVERRIDE
{
return dump(name, value);
}
bool processSignal(const QString &name, const Value *value) QTC_OVERRIDE
bool processSignal(const QString &name, const Value *value) Q_DECL_OVERRIDE
{
return dump(name, value);
}
bool processSlot(const QString &name, const Value *value) QTC_OVERRIDE
bool processSlot(const QString &name, const Value *value) Q_DECL_OVERRIDE
{
return dump(name, value);
}
bool processGeneratedSlot(const QString &name, const Value *value) QTC_OVERRIDE
bool processGeneratedSlot(const QString &name, const Value *value) Q_DECL_OVERRIDE
{
return dump(name, value);
}
......
......@@ -48,17 +48,17 @@ public:
virtual ~DescribeValueVisitor();
QString operator()(const Value *value);
void visit(const NullValue *) QTC_OVERRIDE;
void visit(const UndefinedValue *) QTC_OVERRIDE;
void visit(const UnknownValue *) QTC_OVERRIDE;
void visit(const NumberValue *) QTC_OVERRIDE;
void visit(const BooleanValue *) QTC_OVERRIDE;
void visit(const StringValue *) QTC_OVERRIDE;
void visit(const ObjectValue *) QTC_OVERRIDE;
void visit(const FunctionValue *) QTC_OVERRIDE;
void visit(const Reference *) QTC_OVERRIDE;
void visit(const ColorValue *) QTC_OVERRIDE;
void visit(const AnchorLineValue *) QTC_OVERRIDE;
void visit(const NullValue *) Q_DECL_OVERRIDE;
void visit(const UndefinedValue *) Q_DECL_OVERRIDE;
void visit(const UnknownValue *) Q_DECL_OVERRIDE;
void visit(const NumberValue *) Q_DECL_OVERRIDE;
void visit(const BooleanValue *) Q_DECL_OVERRIDE;
void visit(const StringValue *) Q_DECL_OVERRIDE;
void visit(const ObjectValue *) Q_DECL_OVERRIDE;
void visit(const FunctionValue *) Q_DECL_OVERRIDE;
void visit(const Reference *) Q_DECL_OVERRIDE;
void visit(const ColorValue *) Q_DECL_OVERRIDE;
void visit(const AnchorLineValue *) Q_DECL_OVERRIDE;
QString description() const;
void basicDump(const char *baseName, const Value *value, bool opensContext);
void dumpNewline();
......
......@@ -34,7 +34,6 @@
#include "qmljsdocument.h"
#include "qmljsscopechain.h"
#include <utils/qtcoverride.h>
namespace QmlJS {
......@@ -65,99 +64,99 @@ protected:
const Value *switchResult(const Value *result);
// Ui
bool visit(AST::UiProgram *ast) QTC_OVERRIDE;
bool visit(AST::UiHeaderItemList *ast) QTC_OVERRIDE;
bool visit(AST::UiQualifiedPragmaId *ast) QTC_OVERRIDE;
bool visit(AST::UiPragma *ast) QTC_OVERRIDE;
bool visit(AST::UiImport *ast) QTC_OVERRIDE;
bool visit(AST::UiPublicMember *ast) QTC_OVERRIDE;
bool visit(AST::UiSourceElement *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectDefinition *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectInitializer *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiScriptBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiArrayBinding *ast) QTC_OVERRIDE;
bool visit(AST::UiObjectMemberList *ast) QTC_OVERRIDE;
bool visit(AST::UiArrayMemberList *ast) QTC_OVERRIDE;
bool visit(AST::UiQualifiedId *ast) QTC_OVERRIDE;
bool visit(AST::UiProgram *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiHeaderItemList *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiQualifiedPragmaId *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiPragma *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiImport *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiPublicMember *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiSourceElement *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectDefinition *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectInitializer *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiScriptBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiArrayBinding *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiObjectMemberList *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiArrayMemberList *ast) Q_DECL_OVERRIDE;
bool visit(AST::UiQualifiedId *ast) Q_DECL_OVERRIDE;
// QmlJS
bool visit(AST::ThisExpression *ast) QTC_OVERRIDE;
bool visit(AST::IdentifierExpression *ast) QTC_OVERRIDE;
bool visit(AST::NullExpression *ast) QTC_OVERRIDE;
bool visit(AST::TrueLiteral *ast) QTC_OVERRIDE;
bool visit(AST::FalseLiteral *ast) QTC_OVERRIDE;
bool visit(AST::StringLiteral *ast) QTC_OVERRIDE;
bool visit(AST::NumericLiteral *ast) QTC_OVERRIDE;
bool visit(AST::RegExpLiteral *ast) QTC_OVERRIDE;
bool visit(AST::ArrayLiteral *ast) QTC_OVERRIDE;
bool visit(AST::ObjectLiteral *ast) QTC_OVERRIDE;
bool visit(AST::ElementList *ast) QTC_OVERRIDE;
bool visit(AST::Elision *ast) QTC_OVERRIDE;
bool visit(AST::PropertyAssignmentList *ast) QTC_OVERRIDE;
bool visit(AST::PropertyGetterSetter *ast) QTC_OVERRIDE;
bool visit(AST::PropertyNameAndValue *ast) QTC_OVERRIDE;
bool visit(AST::NestedExpression *ast) QTC_OVERRIDE;
bool visit(AST::IdentifierPropertyName *ast) QTC_OVERRIDE;
bool visit(AST::StringLiteralPropertyName *ast) QTC_OVERRIDE;
bool visit(AST::NumericLiteralPropertyName *ast) QTC_OVERRIDE;
bool visit(AST::ArrayMemberExpression *ast) QTC_OVERRIDE;
bool visit(AST::FieldMemberExpression *ast) QTC_OVERRIDE;
bool visit(AST::NewMemberExpression *ast) QTC_OVERRIDE;
bool visit(AST::NewExpression *ast) QTC_OVERRIDE;
bool visit(AST::CallExpression *ast) QTC_OVERRIDE;
bool visit(AST::ArgumentList *ast) QTC_OVERRIDE;
bool visit(AST::PostIncrementExpression *ast) QTC_OVERRIDE;
bool visit(AST::PostDecrementExpression *ast) QTC_OVERRIDE;
bool visit(AST::DeleteExpression *ast) QTC_OVERRIDE;
bool visit(AST::VoidExpression *ast) QTC_OVERRIDE;
bool visit(AST::TypeOfExpression *ast) QTC_OVERRIDE;
bool visit(AST::PreIncrementExpression *ast) QTC_OVERRIDE;
bool visit(AST::PreDecrementExpression *ast) QTC_OVERRIDE;
bool visit(AST::UnaryPlusExpression *ast) QTC_OVERRIDE;
bool visit(AST::UnaryMinusExpression *ast) QTC_OVERRIDE;
bool visit(AST::TildeExpression *ast) QTC_OVERRIDE;
bool visit(AST::NotExpression *ast) QTC_OVERRIDE;
bool visit(AST::BinaryExpression *ast) QTC_OVERRIDE;
bool visit(AST::ConditionalExpression *ast) QTC_OVERRIDE;
bool visit(AST::Expression *ast) QTC_OVERRIDE;
bool visit(AST::Block *ast) QTC_OVERRIDE;
bool visit(AST::StatementList *ast) QTC_OVERRIDE;
bool visit(AST::VariableStatement *ast) QTC_OVERRIDE;
bool visit(AST::VariableDeclarationList *ast) QTC_OVERRIDE;
bool visit(AST::VariableDeclaration *ast) QTC_OVERRIDE;
bool visit(AST::EmptyStatement *ast) QTC_OVERRIDE;
bool visit(AST::ExpressionStatement *ast) QTC_OVERRIDE;
bool visit(AST::IfStatement *ast) QTC_OVERRIDE;
bool visit(AST::DoWhileStatement *ast) QTC_OVERRIDE;
bool visit(AST::WhileStatement *ast) QTC_OVERRIDE;
bool visit(AST::ForStatement *ast) QTC_OVERRIDE;
bool visit(AST::LocalForStatement *ast) QTC_OVERRIDE;
bool visit(AST::ForEachStatement *ast) QTC_OVERRIDE;
bool visit(AST::LocalForEachStatement *ast) QTC_OVERRIDE;
bool visit(AST::ContinueStatement *ast) QTC_OVERRIDE;
bool visit(AST::BreakStatement *ast) QTC_OVERRIDE;
bool visit(AST::ReturnStatement *ast) QTC_OVERRIDE;
bool visit(AST::WithStatement *ast) QTC_OVERRIDE;
bool visit(AST::SwitchStatement *ast) QTC_OVERRIDE;
bool visit(AST::CaseBlock *ast) QTC_OVERRIDE;
bool visit(AST::CaseClauses *ast) QTC_OVERRIDE;
bool visit(AST::CaseClause *ast) QTC_OVERRIDE;
bool visit(AST::DefaultClause *ast) QTC_OVERRIDE;
bool visit(AST::LabelledStatement *ast) QTC_OVERRIDE;
bool visit(AST::ThrowStatement *ast) QTC_OVERRIDE;
bool visit(AST::TryStatement *ast) QTC_OVERRIDE;
bool visit(AST::Catch *ast) QTC_OVERRIDE;
bool visit(AST::Finally *ast) QTC_OVERRIDE;
bool visit(AST::FunctionDeclaration *ast) QTC_OVERRIDE;
bool visit(AST::FunctionExpression *ast) QTC_OVERRIDE;
bool visit(AST::FormalParameterList *ast) QTC_OVERRIDE;
bool visit(AST::FunctionBody *ast) QTC_OVERRIDE;
bool visit(AST::Program *ast) QTC_OVERRIDE;
bool visit(AST::SourceElements *ast) QTC_OVERRIDE;
bool visit(AST::FunctionSourceElement *ast) QTC_OVERRIDE;
bool visit(AST::StatementSourceElement *ast) QTC_OVERRIDE;
bool visit(AST::DebuggerStatement *ast) QTC_OVERRIDE;
bool visit(AST::ThisExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::IdentifierExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::NullExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::TrueLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::FalseLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::StringLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::NumericLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::RegExpLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::ArrayLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::ObjectLiteral *ast) Q_DECL_OVERRIDE;
bool visit(AST::ElementList *ast) Q_DECL_OVERRIDE;
bool visit(AST::Elision *ast) Q_DECL_OVERRIDE;
bool visit(AST::PropertyAssignmentList *ast) Q_DECL_OVERRIDE;
bool visit(AST::PropertyGetterSetter *ast) Q_DECL_OVERRIDE;
bool visit(AST::PropertyNameAndValue *ast) Q_DECL_OVERRIDE;
bool visit(AST::NestedExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::IdentifierPropertyName *ast) Q_DECL_OVERRIDE;
bool visit(AST::StringLiteralPropertyName *ast) Q_DECL_OVERRIDE;
bool visit(AST::NumericLiteralPropertyName *ast) Q_DECL_OVERRIDE;
bool visit(AST::ArrayMemberExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::FieldMemberExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::NewMemberExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::NewExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::CallExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::ArgumentList *ast) Q_DECL_OVERRIDE;
bool visit(AST::PostIncrementExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::PostDecrementExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::DeleteExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::VoidExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::TypeOfExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::PreIncrementExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::PreDecrementExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::UnaryPlusExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::UnaryMinusExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::TildeExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::NotExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::BinaryExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::ConditionalExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::Expression *ast) Q_DECL_OVERRIDE;
bool visit(AST::Block *ast) Q_DECL_OVERRIDE;
bool visit(AST::StatementList *ast) Q_DECL_OVERRIDE;
bool visit(AST::VariableStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::VariableDeclarationList *ast) Q_DECL_OVERRIDE;
bool visit(AST::VariableDeclaration *ast) Q_DECL_OVERRIDE;
bool visit(AST::EmptyStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ExpressionStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::IfStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::DoWhileStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::WhileStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ForStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::LocalForStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ForEachStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::LocalForEachStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ContinueStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::BreakStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ReturnStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::WithStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::SwitchStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::CaseBlock *ast) Q_DECL_OVERRIDE;
bool visit(AST::CaseClauses *ast) Q_DECL_OVERRIDE;
bool visit(AST::CaseClause *ast) Q_DECL_OVERRIDE;
bool visit(AST::DefaultClause *ast) Q_DECL_OVERRIDE;
bool visit(AST::LabelledStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::ThrowStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::TryStatement *ast) Q_DECL_OVERRIDE;
bool visit(AST::Catch *ast) Q_DECL_OVERRIDE;
bool visit(AST::Finally *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionDeclaration *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionExpression *ast) Q_DECL_OVERRIDE;
bool visit(AST::FormalParameterList *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionBody *ast) Q_DECL_OVERRIDE;
bool visit(AST::Program *ast) Q_DECL_OVERRIDE;
bool visit(AST::SourceElements *ast) Q_DECL_OVERRIDE;
bool visit(AST::FunctionSourceElement *ast) Q_DECL_OVERRIDE;
bool visit(AST::StatementSourceElement *ast) Q_DECL_OVERRIDE;
bool visit(AST::DebuggerStatement *ast) Q_DECL_OVERRIDE;
private:
QmlJS::Document::Ptr _doc;
......
......@@ -34,7 +34,6 @@
#include "qmljsdialect.h"
#include <languageutils/componentversion.h>
#include <utils/qtcoverride.h>
#include <QObject>
#include <QString>
......
......@@ -34,7 +34,6 @@
#include <qmljs/qmljsconstants.h>
#include <qmljs/qmljsdocument.h>
#include <qmljs/qmljsimportdependencies.h>
#include <utils/qtcoverride.h>
#include <QFileInfoList>
#include <QHash>
......@@ -331,61 +330,61 @@ template <> Q_INLINE_TEMPLATE const ASTSignal *value_cast(const Value *v)
class QMLJS_EXPORT NullValue: public Value
{
public:
const NullValue *asNullValue() const QTC_OVERRIDE;
void accept(ValueVisitor *visitor) const QTC_OVERRIDE;
const NullValue *asNullValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT UndefinedValue: public Value
{
public:
const UndefinedValue *asUndefinedValue() const QTC_OVERRIDE;
void accept(ValueVisitor *visitor) const QTC_OVERRIDE;
const UndefinedValue *asUndefinedValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT UnknownValue: public Value
{
public:
const UnknownValue *asUnknownValue() const QTC_OVERRIDE;
void accept(ValueVisitor *) const QTC_OVERRIDE;
const UnknownValue *asUnknownValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT NumberValue: public Value
{
public:
const NumberValue *asNumberValue() const QTC_OVERRIDE;
void accept(ValueVisitor *visitor) const QTC_OVERRIDE;
const NumberValue *asNumberValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT RealValue: public NumberValue
{
public:
const RealValue *asRealValue() const QTC_OVERRIDE;
const RealValue *asRealValue() const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT IntValue: public NumberValue
{
public:
const IntValue *asIntValue() const QTC_OVERRIDE;
const IntValue *asIntValue() const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT BooleanValue: public Value
{
public:
const BooleanValue *asBooleanValue() const QTC_OVERRIDE;
void accept(ValueVisitor *visitor) const QTC_OVERRIDE;
const BooleanValue *asBooleanValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT StringValue: public Value
{
public:
const StringValue *asStringValue() const QTC_OVERRIDE;
void accept(ValueVisitor *visitor) const QTC_OVERRIDE;
const StringValue *asStringValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT UrlValue: public StringValue
{
public:
const UrlValue *asUrlValue() const QTC_OVERRIDE;
const UrlValue *asUrlValue() const Q_DECL_OVERRIDE;
};
class PropertyInfo {
......@@ -453,8 +452,8 @@ public:
ValueOwner *valueOwner() const;
// Value interface
const Reference *asReference() const QTC_OVERRIDE;
void accept(ValueVisitor *) const QTC_OVERRIDE;
const Reference *asReference() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
private:
virtual const Value *value(ReferenceContext *referenceContext) const;
......@@ -467,16 +466,16 @@ class QMLJS_EXPORT ColorValue: public Value
{
public:
// Value interface
const ColorValue *asColorValue() const QTC_OVERRIDE;
void accept(ValueVisitor *) const QTC_OVERRIDE;
const ColorValue *asColorValue() const Q_DECL_OVERRIDE;
void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
};
class QMLJS_EXPORT AnchorLineValue: public Value
{
public:
// Value interface