Commit d0f84139 authored by Stefan Gränitz's avatar Stefan Gränitz
Browse files

Adding a few more overrides that -Wsuggest-override caught but clang-tidy didn't

parent a8afb922
...@@ -5396,7 +5396,7 @@ public: ...@@ -5396,7 +5396,7 @@ public:
_addresses = _endAddresses = NULL; _addresses = _endAddresses = NULL;
return result; return result;
} }
virtual RuleResult* clone() const RuleResult* clone() const override
{ return new TermOrPredicateMemoryExtension(*this); } { return new TermOrPredicateMemoryExtension(*this); }
}; };
...@@ -5460,7 +5460,7 @@ public: ...@@ -5460,7 +5460,7 @@ public:
_commonType = NULL; _commonType = NULL;
return result; return result;
} }
virtual RuleResult* clone() const { return new TermOrPredicateList(*this); } RuleResult* clone() const override { return new TermOrPredicateList(*this); }
}; };
void void
......
...@@ -40,9 +40,9 @@ namespace Acsl { namespace DLexer { ...@@ -40,9 +40,9 @@ namespace Acsl { namespace DLexer {
* AbstractToken. * AbstractToken.
*/ */
#define DefineStandardTokenMethods(Type) \ #define DefineStandardTokenMethods(Type) \
virtual AbstractToken* _clone() const \ AbstractToken* _clone() const override \
{ return new Type(*this); } \ { return new Type(*this); } \
Type* clone() const \ Type* clone() const override \
{ return (Type*) _clone(); } { return (Type*) _clone(); }
class Token; class Token;
......
...@@ -358,10 +358,10 @@ public: ...@@ -358,10 +358,10 @@ public:
TParseState(const thisType& source) TParseState(const thisType& source)
: inherited(source), _readMethod(source._readMethod), : inherited(source), _readMethod(source._readMethod),
_object(source._object) {} _object(source._object) {}
virtual VirtualParseState* clone() const { return new thisType(*this); } VirtualParseState* clone() const override { return new thisType(*this); }
virtual ReadResult operator()( ReadResult operator()(
TStateStack<TypeArguments>& stateStack, ParseArgument& arguments) TStateStack<TypeArguments>& stateStack, ParseArgument& arguments) override
{ return (_object->*_readMethod)(stateStack, arguments); } { return (_object->*_readMethod)(stateStack, arguments); }
const ReadPointerMethod& getStateMethod() const { return _readMethod; } const ReadPointerMethod& getStateMethod() const { return _readMethod; }
void change(TypeObject& object, ReadPointerMethod readMethod, int point) void change(TypeObject& object, ReadPointerMethod readMethod, int point)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment