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:
_addresses = _endAddresses = NULL;
return result;
}
virtual RuleResult* clone() const
RuleResult* clone() const override
{ return new TermOrPredicateMemoryExtension(*this); }
};
......@@ -5460,7 +5460,7 @@ public:
_commonType = NULL;
return result;
}
virtual RuleResult* clone() const { return new TermOrPredicateList(*this); }
RuleResult* clone() const override { return new TermOrPredicateList(*this); }
};
void
......
......@@ -40,9 +40,9 @@ namespace Acsl { namespace DLexer {
* AbstractToken.
*/
#define DefineStandardTokenMethods(Type) \
virtual AbstractToken* _clone() const \
AbstractToken* _clone() const override \
{ return new Type(*this); } \
Type* clone() const \
Type* clone() const override \
{ return (Type*) _clone(); }
class Token;
......
......@@ -358,10 +358,10 @@ public:
TParseState(const thisType& source)
: inherited(source), _readMethod(source._readMethod),
_object(source._object) {}
virtual VirtualParseState* clone() const { return new thisType(*this); }
VirtualParseState* clone() const override { return new thisType(*this); }
virtual ReadResult operator()(
TStateStack<TypeArguments>& stateStack, ParseArgument& arguments)
ReadResult operator()(
TStateStack<TypeArguments>& stateStack, ParseArgument& arguments) override
{ return (_object->*_readMethod)(stateStack, arguments); }
const ReadPointerMethod& getStateMethod() const { return _readMethod; }
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