aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-06-03 15:34:13 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-06-04 08:32:08 +0000
commit9da6ac90220cf59ef600f96d7462c099e1f75ebb (patch)
tree468f928dbb4e1a8cabd6cea9894b9db5c6ab12ee
parente97f389441018e15def341513cbe0291823410c2 (diff)
libs/qmljs: s/Q_DECL_OVERRIDE/override/g
Change-Id: I86a5b56ee8587240a03551c0d23edcbd5230494b Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
-rw-r--r--src/libs/qmljs/jsoncheck.h20
-rw-r--r--src/libs/qmljs/qmljsbind.h22
-rw-r--r--src/libs/qmljs/qmljscheck.h74
-rw-r--r--src/libs/qmljs/qmljscodeformatter.h4
-rw-r--r--src/libs/qmljs/qmljsdescribevalue.cpp10
-rw-r--r--src/libs/qmljs/qmljsdescribevalue.h22
-rw-r--r--src/libs/qmljs/qmljsevaluate.h182
-rw-r--r--src/libs/qmljs/qmljsinterpreter.h184
-rw-r--r--src/libs/qmljs/qmljsscopeastpath.h14
-rw-r--r--src/libs/qmljs/qmljssimplereader.h6
-rw-r--r--src/libs/qmljs/qmljsvalueowner.cpp2
11 files changed, 270 insertions, 270 deletions
diff --git a/src/libs/qmljs/jsoncheck.h b/src/libs/qmljs/jsoncheck.h
index a05ea4873c..70d1087bcc 100644
--- a/src/libs/qmljs/jsoncheck.h
+++ b/src/libs/qmljs/jsoncheck.h
@@ -54,16 +54,16 @@ public:
QList<StaticAnalysis::Message> operator()(Utils::JsonSchema *schema);
private:
- 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;
+ bool preVisit(AST::Node *) override;
+ void postVisit(AST::Node *) override;
+
+ bool visit(AST::ObjectLiteral *ast) override;
+ bool visit(AST::ArrayLiteral *ast) override;
+ bool visit(AST::NullExpression *ast) override;
+ bool visit(AST::TrueLiteral *ast) override;
+ bool visit(AST::FalseLiteral *ast) override;
+ bool visit(AST::NumericLiteral *ast) override;
+ bool visit(AST::StringLiteral *ast) override;
struct AnalysisData
{
diff --git a/src/libs/qmljs/qmljsbind.h b/src/libs/qmljs/qmljsbind.h
index 14a64e024e..58f3e8471a 100644
--- a/src/libs/qmljs/qmljsbind.h
+++ b/src/libs/qmljs/qmljsbind.h
@@ -70,21 +70,21 @@ protected:
void accept(AST::Node *node);
- bool visit(AST::UiProgram *ast) Q_DECL_OVERRIDE;
- bool visit(AST::Program *ast) Q_DECL_OVERRIDE;
+ bool visit(AST::UiProgram *ast) override;
+ bool visit(AST::Program *ast) override;
// Ui
- 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;
+ bool visit(AST::UiImport *ast) override;
+ bool visit(AST::UiPublicMember *ast) override;
+ bool visit(AST::UiObjectDefinition *ast) override;
+ bool visit(AST::UiObjectBinding *ast) override;
+ bool visit(AST::UiScriptBinding *ast) override;
+ bool visit(AST::UiArrayBinding *ast) override;
// QML/JS
- bool visit(AST::FunctionDeclaration *ast) Q_DECL_OVERRIDE;
- bool visit(AST::FunctionExpression *ast) Q_DECL_OVERRIDE;
- bool visit(AST::VariableDeclaration *ast) Q_DECL_OVERRIDE;
+ bool visit(AST::FunctionDeclaration *ast) override;
+ bool visit(AST::FunctionExpression *ast) override;
+ bool visit(AST::VariableDeclaration *ast) override;
ObjectValue *switchObjectValue(ObjectValue *newObjectValue);
ObjectValue *bindObject(AST::UiQualifiedId *qualifiedTypeNameId, AST::UiObjectInitializer *initializer);
diff --git a/src/libs/qmljs/qmljscheck.h b/src/libs/qmljs/qmljscheck.h
index 239c4e3b8a..5fcbaf1e50 100644
--- a/src/libs/qmljs/qmljscheck.h
+++ b/src/libs/qmljs/qmljscheck.h
@@ -67,43 +67,43 @@ public:
void disableQmlDesignerUiFileChecks();
protected:
- 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;
+ bool preVisit(AST::Node *ast) override;
+ void postVisit(AST::Node *ast) override;
+
+ bool visit(AST::UiProgram *ast) override;
+ bool visit(AST::UiObjectDefinition *ast) override;
+ bool visit(AST::UiObjectBinding *ast) override;
+ bool visit(AST::UiScriptBinding *ast) override;
+ bool visit(AST::UiArrayBinding *ast) override;
+ bool visit(AST::UiPublicMember *ast) override;
+ bool visit(AST::IdentifierExpression *ast) override;
+ bool visit(AST::FieldMemberExpression *ast) override;
+ bool visit(AST::FunctionDeclaration *ast) override;
+ bool visit(AST::FunctionExpression *ast) override;
+ bool visit(AST::UiObjectInitializer *) override;
+
+ bool visit(AST::BinaryExpression *ast) override;
+ bool visit(AST::Block *ast) override;
+ bool visit(AST::WithStatement *ast) override;
+ bool visit(AST::VoidExpression *ast) override;
+ bool visit(AST::Expression *ast) override;
+ bool visit(AST::ExpressionStatement *ast) override;
+ bool visit(AST::IfStatement *ast) override;
+ bool visit(AST::ForStatement *ast) override;
+ bool visit(AST::LocalForStatement *ast) override;
+ bool visit(AST::WhileStatement *ast) override;
+ bool visit(AST::DoWhileStatement *ast) override;
+ bool visit(AST::CaseBlock *ast) override;
+ bool visit(AST::NewExpression *ast) override;
+ bool visit(AST::NewMemberExpression *ast) override;
+ bool visit(AST::CallExpression *ast) override;
+ bool visit(AST::StatementList *ast) override;
+ bool visit(AST::ReturnStatement *ast) override;
+ bool visit(AST::ThrowStatement *ast) override;
+ bool visit(AST::DeleteExpression *ast) override;
+ bool visit(AST::TypeOfExpression *ast) override;
+
+ void endVisit(QmlJS::AST::UiObjectInitializer *) override;
private:
void visitQmlObject(AST::Node *ast, AST::UiQualifiedId *typeId,
diff --git a/src/libs/qmljs/qmljscodeformatter.h b/src/libs/qmljs/qmljscodeformatter.h
index 26723df9b1..04fedf1cfa 100644
--- a/src/libs/qmljs/qmljscodeformatter.h
+++ b/src/libs/qmljs/qmljscodeformatter.h
@@ -325,8 +325,8 @@ public:
void setIndentSize(int size);
protected:
- 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;
+ void onEnter(int newState, int *indentDepth, int *savedIndentDepth) const override;
+ void adjustIndent(const QList<QmlJS::Token> &tokens, int lexerState, int *indentDepth) const override;
private:
int m_indentSize;
diff --git a/src/libs/qmljs/qmljsdescribevalue.cpp b/src/libs/qmljs/qmljsdescribevalue.cpp
index 7916a767ff..c60df53582 100644
--- a/src/libs/qmljs/qmljsdescribevalue.cpp
+++ b/src/libs/qmljs/qmljsdescribevalue.cpp
@@ -188,7 +188,7 @@ public:
return true;
}
- bool processProperty(const QString &name, const Value *value, const PropertyInfo &pInfo) Q_DECL_OVERRIDE
+ bool processProperty(const QString &name, const Value *value, const PropertyInfo &pInfo) override
{
d.dumpNewline();
d.dump(name);
@@ -201,19 +201,19 @@ public:
d.closeContext("");
return true;
}
- bool processEnumerator(const QString &name, const Value *value) Q_DECL_OVERRIDE
+ bool processEnumerator(const QString &name, const Value *value) override
{
return dump(name, value);
}
- bool processSignal(const QString &name, const Value *value) Q_DECL_OVERRIDE
+ bool processSignal(const QString &name, const Value *value) override
{
return dump(name, value);
}
- bool processSlot(const QString &name, const Value *value) Q_DECL_OVERRIDE
+ bool processSlot(const QString &name, const Value *value) override
{
return dump(name, value);
}
- bool processGeneratedSlot(const QString &name, const Value *value) Q_DECL_OVERRIDE
+ bool processGeneratedSlot(const QString &name, const Value *value) override
{
return dump(name, value);
}
diff --git a/src/libs/qmljs/qmljsdescribevalue.h b/src/libs/qmljs/qmljsdescribevalue.h
index b333ed46d3..866c68bb2a 100644
--- a/src/libs/qmljs/qmljsdescribevalue.h
+++ b/src/libs/qmljs/qmljsdescribevalue.h
@@ -49,17 +49,17 @@ public:
virtual ~DescribeValueVisitor();
QString operator()(const Value *value);
- 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;
+ void visit(const NullValue *) override;
+ void visit(const UndefinedValue *) override;
+ void visit(const UnknownValue *) override;
+ void visit(const NumberValue *) override;
+ void visit(const BooleanValue *) override;
+ void visit(const StringValue *) override;
+ void visit(const ObjectValue *) override;
+ void visit(const FunctionValue *) override;
+ void visit(const Reference *) override;
+ void visit(const ColorValue *) override;
+ void visit(const AnchorLineValue *) override;
QString description() const;
void basicDump(const char *baseName, const Value *value, bool opensContext);
void dumpNewline();
diff --git a/src/libs/qmljs/qmljsevaluate.h b/src/libs/qmljs/qmljsevaluate.h
index 0dae724946..2b172ca09c 100644
--- a/src/libs/qmljs/qmljsevaluate.h
+++ b/src/libs/qmljs/qmljsevaluate.h
@@ -65,99 +65,99 @@ protected:
const Value *switchResult(const Value *result);
// Ui
- 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;
+ bool visit(AST::UiProgram *ast) override;
+ bool visit(AST::UiHeaderItemList *ast) override;
+ bool visit(AST::UiQualifiedPragmaId *ast) override;
+ bool visit(AST::UiPragma *ast) override;
+ bool visit(AST::UiImport *ast) override;
+ bool visit(AST::UiPublicMember *ast) override;
+ bool visit(AST::UiSourceElement *ast) override;
+ bool visit(AST::UiObjectDefinition *ast) override;
+ bool visit(AST::UiObjectInitializer *ast) override;
+ bool visit(AST::UiObjectBinding *ast) override;
+ bool visit(AST::UiScriptBinding *ast) override;
+ bool visit(AST::UiArrayBinding *ast) override;
+ bool visit(AST::UiObjectMemberList *ast) override;
+ bool visit(AST::UiArrayMemberList *ast) override;
+ bool visit(AST::UiQualifiedId *ast) override;
// QmlJS
- 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;
+ bool visit(AST::ThisExpression *ast) override;
+ bool visit(AST::IdentifierExpression *ast) override;
+ bool visit(AST::NullExpression *ast) override;
+ bool visit(AST::TrueLiteral *ast) override;
+ bool visit(AST::FalseLiteral *ast) override;
+ bool visit(AST::StringLiteral *ast) override;
+ bool visit(AST::NumericLiteral *ast) override;
+ bool visit(AST::RegExpLiteral *ast) override;
+ bool visit(AST::ArrayLiteral *ast) override;
+ bool visit(AST::ObjectLiteral *ast) override;
+ bool visit(AST::ElementList *ast) override;
+ bool visit(AST::Elision *ast) override;
+ bool visit(AST::PropertyAssignmentList *ast) override;
+ bool visit(AST::PropertyGetterSetter *ast) override;
+ bool visit(AST::PropertyNameAndValue *ast) override;
+ bool visit(AST::NestedExpression *ast) override;
+ bool visit(AST::IdentifierPropertyName *ast) override;
+ bool visit(AST::StringLiteralPropertyName *ast) override;
+ bool visit(AST::NumericLiteralPropertyName *ast) override;
+ bool visit(AST::ArrayMemberExpression *ast) override;
+ bool visit(AST::FieldMemberExpression *ast) override;
+ bool visit(AST::NewMemberExpression *ast) override;
+ bool visit(AST::NewExpression *ast) override;
+ bool visit(AST::CallExpression *ast) override;
+ bool visit(AST::ArgumentList *ast) override;
+ bool visit(AST::PostIncrementExpression *ast) override;
+ bool visit(AST::PostDecrementExpression *ast) override;
+ bool visit(AST::DeleteExpression *ast) override;
+ bool visit(AST::VoidExpression *ast) override;
+ bool visit(AST::TypeOfExpression *ast) override;
+ bool visit(AST::PreIncrementExpression *ast) override;
+ bool visit(AST::PreDecrementExpression *ast) override;
+ bool visit(AST::UnaryPlusExpression *ast) override;
+ bool visit(AST::UnaryMinusExpression *ast) override;
+ bool visit(AST::TildeExpression *ast) override;
+ bool visit(AST::NotExpression *ast) override;
+ bool visit(AST::BinaryExpression *ast) override;
+ bool visit(AST::ConditionalExpression *ast) override;
+ bool visit(AST::Expression *ast) override;
+ bool visit(AST::Block *ast) override;
+ bool visit(AST::StatementList *ast) override;
+ bool visit(AST::VariableStatement *ast) override;
+ bool visit(AST::VariableDeclarationList *ast) override;
+ bool visit(AST::VariableDeclaration *ast) override;
+ bool visit(AST::EmptyStatement *ast) override;
+ bool visit(AST::ExpressionStatement *ast) override;
+ bool visit(AST::IfStatement *ast) override;
+ bool visit(AST::DoWhileStatement *ast) override;
+ bool visit(AST::WhileStatement *ast) override;
+ bool visit(AST::ForStatement *ast) override;
+ bool visit(AST::LocalForStatement *ast) override;
+ bool visit(AST::ForEachStatement *ast) override;
+ bool visit(AST::LocalForEachStatement *ast) override;
+ bool visit(AST::ContinueStatement *ast) override;
+ bool visit(AST::BreakStatement *ast) override;
+ bool visit(AST::ReturnStatement *ast) override;
+ bool visit(AST::WithStatement *ast) override;
+ bool visit(AST::SwitchStatement *ast) override;
+ bool visit(AST::CaseBlock *ast) override;
+ bool visit(AST::CaseClauses *ast) override;
+ bool visit(AST::CaseClause *ast) override;
+ bool visit(AST::DefaultClause *ast) override;
+ bool visit(AST::LabelledStatement *ast) override;
+ bool visit(AST::ThrowStatement *ast) override;
+ bool visit(AST::TryStatement *ast) override;
+ bool visit(AST::Catch *ast) override;
+ bool visit(AST::Finally *ast) override;
+ bool visit(AST::FunctionDeclaration *ast) override;
+ bool visit(AST::FunctionExpression *ast) override;
+ bool visit(AST::FormalParameterList *ast) override;
+ bool visit(AST::FunctionBody *ast) override;
+ bool visit(AST::Program *ast) override;
+ bool visit(AST::SourceElements *ast) override;
+ bool visit(AST::FunctionSourceElement *ast) override;
+ bool visit(AST::StatementSourceElement *ast) override;
+ bool visit(AST::DebuggerStatement *ast) override;
private:
QmlJS::Document::Ptr _doc;
diff --git a/src/libs/qmljs/qmljsinterpreter.h b/src/libs/qmljs/qmljsinterpreter.h
index 82855e3568..84794c50fc 100644
--- a/src/libs/qmljs/qmljsinterpreter.h
+++ b/src/libs/qmljs/qmljsinterpreter.h
@@ -334,61 +334,61 @@ template <> Q_INLINE_TEMPLATE const ASTSignal *value_cast(const Value *v)
class QMLJS_EXPORT NullValue: public Value
{
public:
- const NullValue *asNullValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const NullValue *asNullValue() const override;
+ void accept(ValueVisitor *visitor) const override;
};
class QMLJS_EXPORT UndefinedValue: public Value
{
public:
- const UndefinedValue *asUndefinedValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const UndefinedValue *asUndefinedValue() const override;
+ void accept(ValueVisitor *visitor) const override;
};
class QMLJS_EXPORT UnknownValue: public Value
{
public:
- const UnknownValue *asUnknownValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
+ const UnknownValue *asUnknownValue() const override;
+ void accept(ValueVisitor *) const override;
};
class QMLJS_EXPORT NumberValue: public Value
{
public:
- const NumberValue *asNumberValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const NumberValue *asNumberValue() const override;
+ void accept(ValueVisitor *visitor) const override;
};
class QMLJS_EXPORT RealValue: public NumberValue
{
public:
- const RealValue *asRealValue() const Q_DECL_OVERRIDE;
+ const RealValue *asRealValue() const override;
};
class QMLJS_EXPORT IntValue: public NumberValue
{
public:
- const IntValue *asIntValue() const Q_DECL_OVERRIDE;
+ const IntValue *asIntValue() const override;
};
class QMLJS_EXPORT BooleanValue: public Value
{
public:
- const BooleanValue *asBooleanValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const BooleanValue *asBooleanValue() const override;
+ void accept(ValueVisitor *visitor) const override;
};
class QMLJS_EXPORT StringValue: public Value
{
public:
- const StringValue *asStringValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const StringValue *asStringValue() const override;
+ void accept(ValueVisitor *visitor) const override;
};
class QMLJS_EXPORT UrlValue: public StringValue
{
public:
- const UrlValue *asUrlValue() const Q_DECL_OVERRIDE;
+ const UrlValue *asUrlValue() const override;
};
class PropertyInfo {
@@ -456,8 +456,8 @@ public:
ValueOwner *valueOwner() const;
// Value interface
- const Reference *asReference() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
+ const Reference *asReference() const override;
+ void accept(ValueVisitor *) const override;
private:
virtual const Value *value(ReferenceContext *referenceContext) const;
@@ -470,16 +470,16 @@ class QMLJS_EXPORT ColorValue: public Value
{
public:
// Value interface
- const ColorValue *asColorValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
+ const ColorValue *asColorValue() const override;
+ void accept(ValueVisitor *) const override;
};
class QMLJS_EXPORT AnchorLineValue: public Value
{
public:
// Value interface
- const AnchorLineValue *asAnchorLineValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *) const Q_DECL_OVERRIDE;
+ const AnchorLineValue *asAnchorLineValue() const override;
+ void accept(ValueVisitor *) const override;
};
class QMLJS_EXPORT PropertyData {
@@ -526,8 +526,8 @@ public:
{ return lookupMember(name, context.data(), foundInObject, examinePrototypes); }
// Value interface
- const ObjectValue *asObjectValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const ObjectValue *asObjectValue() const override;
+ void accept(ValueVisitor *visitor) const override;
QString originId() const
{ return m_originId; }
@@ -579,7 +579,7 @@ public:
QmlEnumValue(const CppComponentValue *owner, int index);
~QmlEnumValue();
- const QmlEnumValue *asQmlEnumValue() const Q_DECL_OVERRIDE;
+ const QmlEnumValue *asQmlEnumValue() const override;
QString name() const;
QStringList keys() const;
@@ -602,9 +602,9 @@ public:
ValueOwner *valueOwner, const QString &originId);
~CppComponentValue();
- const CppComponentValue *asCppComponentValue() const Q_DECL_OVERRIDE;
+ const CppComponentValue *asCppComponentValue() const override;
- void processMembers(MemberProcessor *processor) const Q_DECL_OVERRIDE;
+ void processMembers(MemberProcessor *processor) const override;
const Value *valueForCppName(const QString &typeName) const;
using ObjectValue::prototype;
@@ -673,8 +673,8 @@ public:
virtual const Value *argument(int index) const;
// Value interface
- const FunctionValue *asFunctionValue() const Q_DECL_OVERRIDE;
- void accept(ValueVisitor *visitor) const Q_DECL_OVERRIDE;
+ const FunctionValue *asFunctionValue() const override;
+ void accept(ValueVisitor *visitor) const override;
};
class QMLJS_EXPORT Function: public FunctionValue
@@ -689,13 +689,13 @@ public:
void setOptionalNamedArgumentCount(int count);
// FunctionValue interface
- const Value *returnValue() const Q_DECL_OVERRIDE;
- int namedArgumentCount() const Q_DECL_OVERRIDE;
- int optionalNamedArgumentCount() const Q_DECL_OVERRIDE;
- const Value *argument(int index) const Q_DECL_OVERRIDE;
- QString argumentName(int index) const Q_DECL_OVERRIDE;
- bool isVariadic() const Q_DECL_OVERRIDE;
- const Function *asFunction() const Q_DECL_OVERRIDE;
+ const Value *returnValue() const override;
+ int namedArgumentCount() const override;
+ int optionalNamedArgumentCount() const override;
+ const Value *argument(int index) const override;
+ QString argumentName(int index) const override;
+ bool isVariadic() const override;
+ const Function *asFunction() const override;
private:
ValueList m_arguments;
@@ -787,13 +787,13 @@ public:
protected:
const Value *switchResult(const Value *value);
- void visit(const NullValue *) Q_DECL_OVERRIDE;
- void visit(const UndefinedValue *) 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 NullValue *) override;
+ void visit(const UndefinedValue *) override;
+ void visit(const NumberValue *) override;
+ void visit(const BooleanValue *) override;
+ void visit(const StringValue *) override;
+ void visit(const ObjectValue *) override;
+ void visit(const FunctionValue *) override;
private:
ValueOwner *m_valueOwner;
@@ -810,13 +810,13 @@ public:
protected:
const Value *switchResult(const Value *value);
- void visit(const NullValue *) Q_DECL_OVERRIDE;
- void visit(const UndefinedValue *) 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 NullValue *) override;
+ void visit(const UndefinedValue *) override;
+ void visit(const NumberValue *) override;
+ void visit(const BooleanValue *) override;
+ void visit(const StringValue *) override;
+ void visit(const ObjectValue *) override;
+ void visit(const FunctionValue *) override;
private:
ValueOwner *m_valueOwner;
@@ -833,13 +833,13 @@ public:
protected:
const Value *switchResult(const Value *value);
- void visit(const NullValue *) Q_DECL_OVERRIDE;
- void visit(const UndefinedValue *) 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 NullValue *) override;
+ void visit(const UndefinedValue *) override;
+ void visit(const NumberValue *) override;
+ void visit(const BooleanValue *) override;
+ void visit(const StringValue *) override;
+ void visit(const ObjectValue *) override;
+ void visit(const FunctionValue *) override;
private:
ValueOwner *m_valueOwner;
@@ -854,15 +854,15 @@ public:
QString operator()(const Value *value);
protected:
- void visit(const NullValue *) Q_DECL_OVERRIDE;
- void visit(const UndefinedValue *) 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 *object) Q_DECL_OVERRIDE;
- void visit(const FunctionValue *object) Q_DECL_OVERRIDE;
- void visit(const ColorValue *) Q_DECL_OVERRIDE;
- void visit(const AnchorLineValue *) Q_DECL_OVERRIDE;
+ void visit(const NullValue *) override;
+ void visit(const UndefinedValue *) override;
+ void visit(const NumberValue *) override;
+ void visit(const BooleanValue *) override;
+ void visit(const StringValue *) override;
+ void visit(const ObjectValue *object) override;
+ void visit(const FunctionValue *object) override;
+ void visit(const ColorValue *) override;
+ void visit(const AnchorLineValue *) override;
};
// internal
@@ -872,13 +872,13 @@ public:
QmlPrototypeReference(AST::UiQualifiedId *qmlTypeName, const Document *doc, ValueOwner *valueOwner);
~QmlPrototypeReference();
- const QmlPrototypeReference *asQmlPrototypeReference() const Q_DECL_OVERRIDE;
+ const QmlPrototypeReference *asQmlPrototypeReference() const override;
AST::UiQualifiedId *qmlTypeName() const;
const Document *document() const;
private:
- const Value *value(ReferenceContext *referenceContext) const Q_DECL_OVERRIDE;
+ const Value *value(ReferenceContext *referenceContext) const override;
AST::UiQualifiedId *m_qmlTypeName;
const Document *m_doc;
@@ -892,11 +892,11 @@ class QMLJS_EXPORT ASTVariableReference: public Reference
public:
ASTVariableReference(AST::VariableDeclaration *ast, const Document *doc, ValueOwner *valueOwner);
~ASTVariableReference();
- const ASTVariableReference *asAstVariableReference() const Q_DECL_OVERRIDE;
+ const ASTVariableReference *asAstVariableReference() const override;
const AST::VariableDeclaration *ast() const;
private:
- const Value *value(ReferenceContext *referenceContext) const Q_DECL_OVERRIDE;
- bool getSourceLocation(QString *fileName, int *line, int *column) const Q_DECL_OVERRIDE;
+ const Value *value(ReferenceContext *referenceContext) const override;
+ bool getSourceLocation(QString *fileName, int *line, int *column) const override;
};
class QMLJS_EXPORT ASTFunctionValue: public FunctionValue
@@ -912,12 +912,12 @@ public:
AST::FunctionExpression *ast() const;
- int namedArgumentCount() const Q_DECL_OVERRIDE;
- QString argumentName(int index) const Q_DECL_OVERRIDE;
- bool isVariadic() const Q_DECL_OVERRIDE;
- const ASTFunctionValue *asAstFunctionValue() const Q_DECL_OVERRIDE;
+ int namedArgumentCount() const override;
+ QString argumentName(int index) const override;
+ bool isVariadic() const override;
+ const ASTFunctionValue *asAstFunctionValue() const override;
- bool getSourceLocation(QString *fileName, int *line, int *column) const Q_DECL_OVERRIDE;
+ bool getSourceLocation(QString *fileName, int *line, int *column) const override;
};
class QMLJS_EXPORT ASTPropertyReference: public Reference
@@ -930,15 +930,15 @@ public:
ASTPropertyReference(AST::UiPublicMember *ast, const Document *doc, ValueOwner *valueOwner);
~ASTPropertyReference();
- const ASTPropertyReference *asAstPropertyReference() const Q_DECL_OVERRIDE;
+ const ASTPropertyReference *asAstPropertyReference() const override;
AST::UiPublicMember *ast() const { return m_ast; }
QString onChangedSlotName() const { return m_onChangedSlotName; }
- bool getSourceLocation(QString *fileName, int *line, int *column) const Q_DECL_OVERRIDE;
+ bool getSourceLocation(QString *fileName, int *line, int *column) const override;
private:
- const Value *value(ReferenceContext *referenceContext) const Q_DECL_OVERRIDE;
+ const Value *value(ReferenceContext *referenceContext) const override;
};
class QMLJS_EXPORT ASTSignal: public FunctionValue
@@ -952,19 +952,19 @@ public:
ASTSignal(AST::UiPublicMember *ast, const Document *doc, ValueOwner *valueOwner);
~ASTSignal();
- const ASTSignal *asAstSignal() const Q_DECL_OVERRIDE;
+ const ASTSignal *asAstSignal() const override;
AST::UiPublicMember *ast() const { return m_ast; }
QString slotName() const { return m_slotName; }
const ObjectValue *bodyScope() const { return m_bodyScope; }
// FunctionValue interface
- int namedArgumentCount() const Q_DECL_OVERRIDE;
- const Value *argument(int index) const Q_DECL_OVERRIDE;
- QString argumentName(int index) const Q_DECL_OVERRIDE;
+ int namedArgumentCount() const override;
+ const Value *argument(int index) const override;
+ QString argumentName(int index) const override;
// Value interface
- bool getSourceLocation(QString *fileName, int *line, int *column) const Q_DECL_OVERRIDE;
+ bool getSourceLocation(QString *fileName, int *line, int *column) const override;
};
class QMLJS_EXPORT ASTObjectValue: public ObjectValue
@@ -983,10 +983,10 @@ public:
ValueOwner *valueOwner);
~ASTObjectValue();
- const ASTObjectValue *asAstObjectValue() const Q_DECL_OVERRIDE;
+ const ASTObjectValue *asAstObjectValue() const override;
- bool getSourceLocation(QString *fileName, int *line, int *column) const Q_DECL_OVERRIDE;
- void processMembers(MemberProcessor *processor) const Q_DECL_OVERRIDE;
+ bool getSourceLocation(QString *fileName, int *line, int *column) const override;
+ void processMembers(MemberProcessor *processor) const override;
QString defaultPropertyName() const;
@@ -1059,9 +1059,9 @@ public:
virtual const Value *lookupMember(const QString &name, const Context *context,
const ObjectValue **foundInObject = 0,
- bool examinePrototypes = true) const Q_DECL_OVERRIDE;
- void processMembers(MemberProcessor *processor) const Q_DECL_OVERRIDE;
- const TypeScope *asTypeScope() const Q_DECL_OVERRIDE;
+ bool examinePrototypes = true) const override;
+ void processMembers(MemberProcessor *processor) const override;
+ const TypeScope *asTypeScope() const override;
private:
const Imports *m_imports;
};
@@ -1073,9 +1073,9 @@ public:
virtual const Value *lookupMember(const QString &name, const Context *context,
const ObjectValue **foundInObject = 0,
- bool examinePrototypes = true) const Q_DECL_OVERRIDE;
- void processMembers(MemberProcessor *processor) const Q_DECL_OVERRIDE;
- const JSImportScope *asJSImportScope() const Q_DECL_OVERRIDE;
+ bool examinePrototypes = true) const override;
+ void processMembers(MemberProcessor *processor) const override;
+ const JSImportScope *asJSImportScope() const override;
private:
const Imports *m_imports;
};
diff --git a/src/libs/qmljs/qmljsscopeastpath.h b/src/libs/qmljs/qmljsscopeastpath.h
index 19c4be60da..1aa5c54f2e 100644
--- a/src/libs/qmljs/qmljsscopeastpath.h
+++ b/src/libs/qmljs/qmljsscopeastpath.h
@@ -49,13 +49,13 @@ protected:
using Visitor::visit;
- bool preVisit(AST::Node *node) Q_DECL_OVERRIDE;
- bool visit(AST::UiPublicMember *node) Q_DECL_OVERRIDE;
- bool visit(AST::UiScriptBinding *node) Q_DECL_OVERRIDE;
- bool visit(AST::UiObjectDefinition *node) Q_DECL_OVERRIDE;
- bool visit(AST::UiObjectBinding *node) Q_DECL_OVERRIDE;
- bool visit(AST::FunctionDeclaration *node) Q_DECL_OVERRIDE;
- bool visit(AST::FunctionExpression *node) Q_DECL_OVERRIDE;
+ bool preVisit(AST::Node *node) override;
+ bool visit(AST::UiPublicMember *node) override;
+ bool visit(AST::UiScriptBinding *node) override;
+ bool visit(AST::UiObjectDefinition *node) override;
+ bool visit(AST::UiObjectBinding *node) override;
+ bool visit(AST::FunctionDeclaration *node) override;
+ bool visit(AST::FunctionExpression *node) override;
private:
bool containsOffset(AST::SourceLocation start, AST::SourceLocation end);
diff --git a/src/libs/qmljs/qmljssimplereader.h b/src/libs/qmljs/qmljssimplereader.h
index 2f2d97ad49..6f5c8f1566 100644
--- a/src/libs/qmljs/qmljssimplereader.h
+++ b/src/libs/qmljs/qmljssimplereader.h
@@ -122,9 +122,9 @@ public:
SimpleReaderNode::Ptr readFromSource(const QString &source);
protected:
- void elementStart(const QString &name) Q_DECL_OVERRIDE;
- void elementEnd() Q_DECL_OVERRIDE;
- void propertyDefinition(const QString &name, const QVariant &value) Q_DECL_OVERRIDE;
+ void elementStart(const QString &name) override;
+ void elementEnd() override;
+ void propertyDefinition(const QString &name, const QVariant &value) override;
private:
SimpleReaderNode::Ptr m_rootNode;
diff --git a/src/libs/qmljs/qmljsvalueowner.cpp b/src/libs/qmljs/qmljsvalueowner.cpp
index 7db6ad15a8..1eece704a8 100644
--- a/src/libs/qmljs/qmljsvalueowner.cpp
+++ b/src/libs/qmljs/qmljsvalueowner.cpp
@@ -54,7 +54,7 @@ public:
QtObjectPrototypeReference(ValueOwner *owner)
: Reference(owner)
{}
- const QtObjectPrototypeReference *asQtObjectPrototypeReference() const Q_DECL_OVERRIDE
+ const QtObjectPrototypeReference *asQtObjectPrototypeReference() const override
{
return this;
}