Index: tools/gn/parse_tree.h |
diff --git a/tools/gn/parse_tree.h b/tools/gn/parse_tree.h |
index 06300586ece115217bd9ffef87307cc96fa5c652..ddacb770fe3ab7817e74316acf044598a786c0ce 100644 |
--- a/tools/gn/parse_tree.h |
+++ b/tools/gn/parse_tree.h |
@@ -137,15 +137,15 @@ class ParseNode { |
class AccessorNode : public ParseNode { |
public: |
AccessorNode(); |
- virtual ~AccessorNode(); |
+ ~AccessorNode() override; |
- virtual const AccessorNode* AsAccessor() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const AccessorNode* AsAccessor() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
// Base is the thing on the left of the [] or dot, currently always required |
// to be an identifier token. |
@@ -180,15 +180,15 @@ class AccessorNode : public ParseNode { |
class BinaryOpNode : public ParseNode { |
public: |
BinaryOpNode(); |
- virtual ~BinaryOpNode(); |
+ ~BinaryOpNode() override; |
- virtual const BinaryOpNode* AsBinaryOp() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const BinaryOpNode* AsBinaryOp() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& op() const { return op_; } |
void set_op(const Token& t) { op_ = t; } |
@@ -217,15 +217,15 @@ class BlockNode : public ParseNode { |
public: |
// Set has_scope if this block introduces a nested scope. |
explicit BlockNode(bool has_scope); |
- virtual ~BlockNode(); |
+ ~BlockNode() override; |
- virtual const BlockNode* AsBlock() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const BlockNode* AsBlock() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
void set_begin_token(const Token& t) { begin_token_ = t; } |
void set_end(scoped_ptr<EndNode> e) { end_ = e.Pass(); } |
@@ -258,15 +258,15 @@ class BlockNode : public ParseNode { |
class ConditionNode : public ParseNode { |
public: |
ConditionNode(); |
- virtual ~ConditionNode(); |
+ ~ConditionNode() override; |
- virtual const ConditionNode* AsConditionNode() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const ConditionNode* AsConditionNode() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
void set_if_token(const Token& token) { if_token_ = token; } |
@@ -303,15 +303,15 @@ class ConditionNode : public ParseNode { |
class FunctionCallNode : public ParseNode { |
public: |
FunctionCallNode(); |
- virtual ~FunctionCallNode(); |
+ ~FunctionCallNode() override; |
- virtual const FunctionCallNode* AsFunctionCall() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const FunctionCallNode* AsFunctionCall() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& function() const { return function_; } |
void set_function(Token t) { function_ = t; } |
@@ -336,15 +336,15 @@ class IdentifierNode : public ParseNode { |
public: |
IdentifierNode(); |
IdentifierNode(const Token& token); |
- virtual ~IdentifierNode(); |
+ ~IdentifierNode() override; |
- virtual const IdentifierNode* AsIdentifier() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const IdentifierNode* AsIdentifier() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& value() const { return value_; } |
void set_value(const Token& t) { value_ = t; } |
@@ -360,15 +360,15 @@ class IdentifierNode : public ParseNode { |
class ListNode : public ParseNode { |
public: |
ListNode(); |
- virtual ~ListNode(); |
+ ~ListNode() override; |
- virtual const ListNode* AsList() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const ListNode* AsList() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
void set_begin_token(const Token& t) { begin_token_ = t; } |
void set_end(scoped_ptr<EndNode> e) { end_ = e.Pass(); } |
@@ -397,15 +397,15 @@ class LiteralNode : public ParseNode { |
public: |
LiteralNode(); |
LiteralNode(const Token& token); |
- virtual ~LiteralNode(); |
+ ~LiteralNode() override; |
- virtual const LiteralNode* AsLiteral() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const LiteralNode* AsLiteral() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& value() const { return value_; } |
void set_value(const Token& t) { value_ = t; } |
@@ -421,15 +421,15 @@ class LiteralNode : public ParseNode { |
class UnaryOpNode : public ParseNode { |
public: |
UnaryOpNode(); |
- virtual ~UnaryOpNode(); |
+ ~UnaryOpNode() override; |
- virtual const UnaryOpNode* AsUnaryOp() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const UnaryOpNode* AsUnaryOp() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& op() const { return op_; } |
void set_op(const Token& t) { op_ = t; } |
@@ -456,15 +456,15 @@ class UnaryOpNode : public ParseNode { |
class BlockCommentNode : public ParseNode { |
public: |
BlockCommentNode(); |
- virtual ~BlockCommentNode(); |
+ ~BlockCommentNode() override; |
- virtual const BlockCommentNode* AsBlockComment() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const BlockCommentNode* AsBlockComment() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& comment() const { return comment_; } |
void set_comment(const Token& t) { comment_ = t; } |
@@ -484,15 +484,15 @@ class BlockCommentNode : public ParseNode { |
class EndNode : public ParseNode { |
public: |
EndNode(const Token& token); |
- virtual ~EndNode(); |
+ ~EndNode() override; |
- virtual const EndNode* AsEnd() const OVERRIDE; |
- virtual Value Execute(Scope* scope, Err* err) const OVERRIDE; |
- virtual LocationRange GetRange() const OVERRIDE; |
- virtual Err MakeErrorDescribing( |
+ const EndNode* AsEnd() const OVERRIDE; |
+ Value Execute(Scope* scope, Err* err) const OVERRIDE; |
+ LocationRange GetRange() const OVERRIDE; |
+ Err MakeErrorDescribing( |
const std::string& msg, |
const std::string& help = std::string()) const OVERRIDE; |
- virtual void Print(std::ostream& out, int indent) const OVERRIDE; |
+ void Print(std::ostream& out, int indent) const OVERRIDE; |
const Token& value() const { return value_; } |
void set_value(const Token& t) { value_ = t; } |